Searched defs:keytype (Results 1 - 25 of 37) sorted by relevance

12

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddecr_mgr.c42 CK_KEY_TYPE keytype; local
99 keytype = *(CK_KEY_TYPE *)attr->pValue;
100 if (keytype != CKK_RSA) {
H A Dencr_mgr.c40 CK_KEY_TYPE keytype; local
99 keytype = *(CK_KEY_TYPE *)attr->pValue;
100 if (keytype != CKK_RSA) {
H A Dsign_mgr.c40 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 Dverify_mgr.c39 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 Dkey_mgr.c35 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 Dkey.c654 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 Dpbkdf2.c61 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 Dgetkeyent.c69 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 Dgenkey.c47 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 Dgenkeypair.c58 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 Ddelete.c229 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 Dgencert.c64 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 Dgencsr.c388 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 Dimport.c810 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 Dpkcs11SUNWExtensions.c286 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 DmetaObjectManager.c281 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 DsoftASN1.c923 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 DsoftKeystore.c565 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 Dldap_key_seq.c29 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 Delfcertlib.c345 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 Discsi_login.c678 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 Dpk11keys.c62 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 Dkssladm_create.c101 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 Ddigest.c279 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 DkernelAttributeUtil.c828 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...]

Completed in 104 milliseconds

12