/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | decr_mgr.c | 42 CK_KEY_TYPE keytype; local 99 keytype = *(CK_KEY_TYPE *)attr->pValue; 100 if (keytype != CKK_RSA) {
|
H A D | encr_mgr.c | 40 CK_KEY_TYPE keytype; local 99 keytype = *(CK_KEY_TYPE *)attr->pValue; 100 if (keytype != CKK_RSA) {
|
H A D | sign_mgr.c | 40 CK_KEY_TYPE keytype; local 74 keytype = *(CK_KEY_TYPE *)attr->pValue; 75 if (keytype != CKK_RSA) { 107 keytype = *(CK_KEY_TYPE *)attr->pValue; 108 if (keytype != CKK_RSA) { 147 keytype = *(CK_KEY_TYPE *)attr->pValue; 148 if (keytype != CKK_GENERIC_SECRET) { 184 keytype = *(CK_KEY_TYPE *)attr->pValue; 185 if (keytype != CKK_GENERIC_SECRET) {
|
H A D | verify_mgr.c | 39 CK_KEY_TYPE keytype; local 78 keytype = *(CK_KEY_TYPE *)attr->pValue; 79 if (keytype != CKK_RSA) { 109 keytype = *(CK_KEY_TYPE *)attr->pValue; 110 if (keytype != CKK_RSA) { 145 keytype = *(CK_KEY_TYPE *)attr->pValue; 146 if (keytype != CKK_GENERIC_SECRET) { 180 keytype = *(CK_KEY_TYPE *)attr->pValue; 181 if (keytype != CKK_GENERIC_SECRET) {
|
H A D | key_mgr.c | 35 CK_KEY_TYPE *keytype) 50 *keytype = CKK_RSA; 246 CK_KEY_TYPE keytype; local 296 keytype = *(CK_KEY_TYPE *)attr->pValue; 298 switch (keytype) { 362 CK_ULONG keyclass, keytype; local 396 keytype = *(CK_KEY_TYPE *)attributes[i].pValue; 463 rc = key_mgr_get_private_key_type(data, data_len, &keytype); 471 MODE_UNWRAP, keyclass, keytype, 478 rc = secret_key_unwrap(key_obj->template, keytype, dat 32 key_mgr_get_private_key_type( CK_BYTE *keydata, CK_ULONG keylen, CK_KEY_TYPE *keytype) argument [all...] |
H A D | key.c | 654 CK_ULONG keytype, 667 switch (keytype) { 949 CK_ULONG keytype, 963 switch (keytype) { 653 priv_key_unwrap(TEMPLATE *tmpl, CK_ULONG keytype, CK_BYTE *data, CK_ULONG data_len) argument 948 secret_key_unwrap(TEMPLATE *tmpl, CK_ULONG keytype, CK_BYTE *data, CK_ULONG data_len, CK_BBOOL fromend) argument
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | pbkdf2.c | 61 CK_KEY_TYPE keytype; local 75 rv = get_key_type(enctype, &keytype); 80 tmpl[attrs].pValue = &keytype; 81 tmpl[attrs].ulValueLen = sizeof (keytype);
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getkeyent.c | 69 char *keytype = (char *)argp->key.pkey.keytype; local 70 int keytypelen = strlen(keytype); 77 if (result == NULL || keytype == NULL) { 90 if (strncasecmp(*pkey_array, keytype, keytypelen) == NULL) 115 if (strncasecmp(*skey_array, keytype, keytypelen) == NULL)
|
/illumos-gate/usr/src/cmd/cmd-crypto/pktool/ |
H A D | genkey.c | 47 KMF_KEY_ALG keytype; local 62 keytype = keyAlg; 74 KMF_KEYALG_ATTR, &keytype, sizeof (keytype)); 123 KMF_KEY_ALG keytype; local 166 keytype = keyAlg; 178 KMF_KEYALG_ATTR, &keytype, sizeof (keytype)); 266 KMF_KEY_ALG keytype; local 285 keytype 368 char *keytype = "generic"; local [all...] |
H A D | genkeypair.c | 58 KMF_KEY_ALG keytype; local 62 keytype = keyAlg; 75 KMF_KEYALG_ATTR, &keytype, 76 sizeof (keytype)); 108 if (keytype == KMF_ECDSA && curveoid != NULL) { 143 KMF_KEY_ALG keytype; local 164 keytype = keyAlg; 173 KMF_KEYALG_ATTR, &keytype, 174 sizeof (keytype)); 237 KMF_KEY_ALG keytype; local 328 char *keytype = PK_DEFAULT_KEYTYPE; local [all...] |
H A D | delete.c | 229 char *keytype = NULL; local 270 keytype = "private"; 271 rv = pk_delete_keys(kmfhandle, attrlist, num, keytype, &nk); 285 keytype = "symmetric"; 286 rv = pk_delete_keys(kmfhandle, attrlist, num, keytype, &nk); 300 keytype = "public"; 301 rv = pk_delete_keys(kmfhandle, attrlist, num, keytype, &nk); 632 char *keytype = ""; local 663 keytype = "Asymmetric"; 664 rv = pk_delete_keys(kmfhandle, attrlist, num, keytype, [all...] |
H A D | gencert.c | 64 KMF_KEY_ALG keytype; local 87 keytype = keyAlg; 99 keytype, keylength, tokencred, curveoid, &prik, &pubk); 579 char *keytype = PK_DEFAULT_KEYTYPE; local 611 "T:(token)d:(dir)p:(prefix)t:(keytype)y:(keylen)" 662 keytype = optarg_av; 794 if (Str2KeyType(keytype, hashoid, &keyAlg, &sigAlg) != 0) { 797 keytype, (hashname ? hashname : "none"));
|
H A D | gencsr.c | 388 char *keytype = PK_DEFAULT_KEYTYPE; local 405 "u:(keyusage)T:(token)d:(dir)p:(prefix)t:(keytype)" 462 keytype = optarg_av; 668 if ((rv = Str2KeyType(keytype, hashoid, &keyAlg, &sigAlg)) != 0) { 671 keytype, (hashname ? hashname : "none"));
|
H A D | import.c | 810 char *keytype = "generic"; local 832 "E:(keytype)s:(sensitive)x:(extractable)" 906 keytype = optarg_av; 1005 if (keytype != NULL && 1006 Str2SymKeyType(keytype, &keyAlg) != 0) { 1008 gettext("Unrecognized keytype(%s).\n"), keytype);
|
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/ |
H A D | pkcs11SUNWExtensions.c | 286 CK_KEY_TYPE keytype; local 323 if ((rv = pkcs11_mech2keytype(mech, &keytype)) != CKR_OK) { 329 template[i].pValue = &keytype; 330 template[i].ulValueLen = sizeof (keytype);
|
H A D | metaObjectManager.c | 281 CK_KEY_TYPE keytype; local 346 attrs[2].pValue = &keytype; 347 attrs[2].ulValueLen = sizeof (keytype); 357 attrs[count].pValue = &keytype; 358 attrs[count].ulValueLen = sizeof (keytype); 379 if (keytype == CKK_EC || keytype == CKK_RSA || 380 keytype == CKK_DH) { 882 CK_KEY_TYPE keytype; local 894 keytype 1823 meta_freeobject_check(meta_session_t *session, meta_object_t *object, CK_MECHANISM *pMech, CK_ATTRIBUTE *tmpl, CK_ULONG tmpl_len, CK_KEY_TYPE keytype) argument [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softASN1.c | 923 CK_KEY_TYPE keytype = objp->key_type; local 928 switch (keytype) { 943 } /* keytype */ 1869 CK_KEY_TYPE keytype = objp->key_type; local 1881 switch (keytype) { 1902 } /* keytype */
|
H A D | softKeystore.c | 565 CK_KEY_TYPE keytype = objp->key_type; local 570 switch (keytype) { 630 } /* keytype */ 635 switch (keytype) { 712 } /* keytype */ 763 CK_KEY_TYPE keytype = objp->key_type; local 769 switch (keytype) { 958 } /* keytype */ 963 switch (keytype) { 1234 } /* keytype */ 1329 CK_KEY_TYPE keytype = objp->key_type; local 1998 CK_KEY_TYPE keytype = CKK_AES; local 2123 CK_KEY_TYPE keytype = CKK_GENERIC_SECRET; local [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | ldap_key_seq.c | 29 keytype [0] Int32, 331 unsigned long keytype; local 339 ret = decode_tagged_integer (&slt, 0, (long *) &keytype); 340 key->key_data_type[1] = keytype; /* XXX range check?? */
|
/illumos-gate/usr/src/lib/libelfsign/common/ |
H A D | elfcertlib.c | 345 KMF_KEY_ALG keytype; local 352 keytype = KMF_KEYALG_NONE; 364 &keytype, sizeof (keytype)); 405 KMF_KEY_ALG keytype; local 429 keytype = KMF_KEYALG_NONE; 445 &keytype, sizeof (keytype));
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_login.c | 678 int keytype = 0; local 968 keytype = iscsiAuthKeyTypeNone; 989 while (iscsiAuthClientGetNextKeyType(&keytype) == 992 char *key = (char *)iscsiAuthClientGetKeyName(keytype); 1004 rc = iscsiAuthClientSendKeyValue(auth_client, keytype, 1232 int keytype = iscsiAuthKeyTypeNone; local 1235 &keytype) == iscsiAuthStatusNoError) { 1239 keytype); 1246 (auth_client, keytype,
|
/illumos-gate/usr/src/lib/libkmf/libkmf/common/ |
H A D | pk11keys.c | 62 CK_KEY_TYPE *keytype, CK_MECHANISM_TYPE *signmech, 71 if (keytype) 72 *keytype = alg_info_map[uIndex].ckKeyType; 555 CK_KEY_TYPE keytype; local 566 if (get_pk11_data(AlgorithmId, &keytype, &mechtype, NULL, 0)) 575 keytype, &ckKeyHandle); 61 get_pk11_data(KMF_ALGORITHM_INDEX AlgId, CK_KEY_TYPE *keytype, CK_MECHANISM_TYPE *signmech, CK_MECHANISM_TYPE *hashmech, boolean_t vfy) argument
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/ |
H A D | kssladm_create.c | 101 static CK_KEY_TYPE keytype = CKK_RSA; local 107 {CKA_KEY_TYPE, &keytype, sizeof (keytype) },
|
/illumos-gate/usr/src/cmd/cmd-crypto/digest/ |
H A D | digest.c | 279 get_token_key(CK_SESSION_HANDLE hSession, CK_KEY_TYPE keytype, argument 290 CK_KEY_TYPE ckKeyType = keytype; 386 CK_KEY_TYPE keytype; local 652 keytype = CKK_DES; 654 keytype = CKK_GENERIC_SECRET; 657 rv = get_token_key(hSession, keytype, key_label, 664 CK_KEY_TYPE keytype; local 666 keytype = CKK_DES; 669 keytype = CKK_GENERIC_SECRET; 681 sizeof (salt), iterations, keytype, keysiz [all...] |
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelAttributeUtil.c | 828 CK_KEY_TYPE keytype = object_p->key_type; local 834 switch (keytype) { 872 switch (keytype) { 1005 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 1052 keytype = *((CK_KEY_TYPE*)template[i].pValue); 1225 if (keytype == (CK_KEY_TYPE)~0UL) { 1229 new_object->key_type = keytype; 1232 switch (keytype) { 1372 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 1437 keytype 1846 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 2314 CK_KEY_TYPE keytype = object_p->key_type; local 2468 CK_KEY_TYPE keytype = object_p->key_type; local 2713 CK_KEY_TYPE keytype = object_p->key_type; local 2975 CK_KEY_TYPE keytype = object_p->key_type; local 3041 CK_KEY_TYPE keytype = object_p->key_type; local 3139 CK_KEY_TYPE keytype = object_p->key_type; local [all...] |