/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | valid_enctype.c | 57 * is_in_keytype(): returns 1 if enctype == one of the enctypes in keytype 61 is_in_keytype(keytype, numkeytypes, enctype) 62 krb5_const krb5_enctype *keytype; 71 if (keytype == NULL || numkeytypes <= 0) { 77 KRB5_LOG1(KRB5_INFO, "is_in_keytype() keytype[%d] = %d", 78 i, keytype[i]); 80 if (keytype[i] == enctype) {
|
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/cmd/ssh/etc/ |
H A D | sshd | 21 keytype=$2 40 echo Creating new $keytype public/private host key pair 41 $KEYGEN -f $keypath -t $keytype -N '' 43 echo "Could not create $keytype key: $keypath"
|
/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"));
|
/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/lib/pkcs11/pkcs11_tpm/common/ |
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 | 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) {
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | hash.h | 84 void sqliteHashInit(Hash*, int keytype, int copyKey);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softAttributeUtil.c | 1028 CK_KEY_TYPE keytype = object_p->key_type; local 1034 switch (keytype) { 1086 switch (keytype) { 1174 switch (keytype) { 1289 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 1342 keytype = *((CK_KEY_TYPE*)template[i].pValue); 1544 if ((mode == SOFT_CREATE_OBJ) && (keytype == (CK_KEY_TYPE)~0UL)) { 1549 if ((mode == SOFT_GEN_KEY) && (keytype == (CK_KEY_TYPE)~0UL)) { 1550 keytype = key_type; 1553 if ((mode == SOFT_GEN_KEY) && (keytype ! 1854 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 2524 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 3178 CK_KEY_TYPE keytype = (CK_KEY_TYPE)~0UL; local 3870 CK_KEY_TYPE keytype = object_p->key_type; local 4043 CK_KEY_TYPE keytype = object_p->key_type; local 4313 CK_KEY_TYPE keytype = object_p->key_type; local 4427 CK_KEY_TYPE keytype = object_p->key_type; local 4825 CK_KEY_TYPE keytype = object_p->key_type; local 4897 CK_KEY_TYPE keytype = object_p->key_type; local 5005 CK_KEY_TYPE keytype = object_p->key_type; local [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...] |
/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/libkmf/plugins/kmf_pkcs11/common/ |
H A D | pkcs11_spi.c | 1590 const ulong_t keytype = CKK_EC; local 1602 &keytype, sizeof (keytype)); 1622 &keytype, sizeof (keytype)); 1658 KMF_KEY_ALG keytype = KMF_RSA; local 1692 /* keytype is optional. KMF_RSA is default */ 1694 (void *)&keytype, NULL); 1706 if (keytype == KMF_RSA) { 1765 } else if (keytype 2011 CK_KEY_TYPE keytype; local 2099 getObjectKeytype(KMF_HANDLE_T handle, CK_OBJECT_HANDLE obj, CK_ULONG *keytype) argument 2188 CK_ULONG keytype; local 2327 CK_KEY_TYPE keytype; local 2935 KMF_KEY_ALG keytype = KMF_KEYALG_NONE; local 3055 CK_ULONG keytype; local 3197 CK_KEY_TYPE keytype; local 3475 KMF_KEY_ALG keytype; local [all...] |
/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/cmd/cmd-crypto/decrypt/ |
H A D | decrypt.c | 334 * find the token key object with the specified keytype and keylabel. 337 get_token_key(CK_SESSION_HANDLE hSession, CK_KEY_TYPE keytype, argument 348 CK_KEY_TYPE ckKeyType = keytype; 448 CK_KEY_TYPE keytype; local 671 rv = pkcs11_mech2keytype(mech_type, &keytype); 808 rv = get_token_key(hSession, keytype, key_label, pkeydata, 834 if (kflag && keyfile != NULL && keytype != CKK_RC4) { 846 template[nattr].pValue = &keytype; 847 template[nattr].ulValueLen = sizeof (keytype); 872 if (keytype [all...] |
/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/libkmf/plugins/kmf_nss/common/ |
H A D | nss_spi.c | 824 KMF_KEY_ALG keytype = KMF_RSA; local 851 /* keytype is optional. KMF_RSA is default */ 853 (void *)&keytype, NULL); 888 if (keytype == KMF_RSA) { 908 } else if (keytype == KMF_DSA) { 938 } else if (keytype == KMF_ECDSA) { 974 privkey->keyalg = keytype; 980 pubkey->keyalg = keytype; 1382 KMF_KEY_ALG keytype = KMF_KEYALG_NONE; local 1516 (void *)&keytype, NUL 1915 KMF_KEY_ALG keytype; 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?? */
|