Lines Matching defs:rc

417 	CK_RV	    rc;
420 rc = key_object_set_default_attributes(tmpl, mode);
421 if (rc != CKR_OK) {
422 return (rc);
536 CK_RV rc;
539 rc = key_object_set_default_attributes(tmpl, mode);
540 if (rc != CKR_OK) {
541 return (rc);
665 CK_RV rc;
669 rc = rsa_priv_unwrap(tmpl, data, data_len);
676 if (rc != CKR_OK) {
677 return (rc);
687 rc = build_attribute(CKA_LOCAL, &false, 1, &local);
688 if (rc != CKR_OK) {
691 rc = build_attribute(CKA_ALWAYS_SENSITIVE, &false, 1, &always_sens);
692 if (rc != CKR_OK) {
695 rc = build_attribute(CKA_SENSITIVE, &false, 1, &sensitive);
696 if (rc != CKR_OK) {
699 rc = build_attribute(CKA_EXTRACTABLE, &true, 1, &extractable);
700 if (rc != CKR_OK) {
703 rc = build_attribute(CKA_NEVER_EXTRACTABLE, &false, 1, &never_extract);
704 if (rc != CKR_OK) {
722 return (rc);
817 CK_RV rc;
820 rc = key_object_set_default_attributes(tmpl, mode);
821 if (rc != CKR_OK)
822 return (rc);
961 CK_RV rc;
965 rc = generic_secret_unwrap(tmpl, data, data_len, fromend);
972 if (rc != CKR_OK)
973 return (rc);
981 rc = build_attribute(CKA_LOCAL, &false, 1, &local);
982 if (rc != CKR_OK) {
985 rc = build_attribute(CKA_ALWAYS_SENSITIVE, &false, 1, &always_sens);
986 if (rc != CKR_OK) {
989 rc = build_attribute(CKA_SENSITIVE, &false, 1, &sensitive);
990 if (rc != CKR_OK) {
993 rc = build_attribute(CKA_EXTRACTABLE, &true, 1, &extractable);
994 if (rc != CKR_OK) {
997 rc = build_attribute(CKA_NEVER_EXTRACTABLE, &false, 1, &never_extract);
998 if (rc != CKR_OK) {
1016 return (rc);
1440 CK_RV rc;
1473 rc = ber_encode_RSAPrivateKey(length_only, data, data_len,
1477 return (rc);
1493 CK_RV rc;
1495 rc = ber_decode_RSAPrivateKey(data, total_length,
1499 if (rc != CKR_OK) {
1500 return (rc);
1643 CK_RV rc;
1649 rc = template_attribute_find(tmpl, CKA_VALUE, &attr);
1650 if (rc == FALSE) {
1678 CK_ULONG rc, len = 0;
1686 rc = template_attribute_find(tmpl, CKA_VALUE_LEN, &attr);
1687 if (rc) {
1690 rc = CKR_ATTRIBUTE_VALUE_INVALID;
1701 rc = build_attribute(CKA_VALUE, ptr, data_len, &value_attr);
1702 if (rc != CKR_OK) {
1706 rc = build_attribute(CKA_VALUE_LEN, (CK_BYTE *)&data_len,
1708 if (rc != CKR_OK)
1723 return (rc);