Home
last modified time | relevance | path

Searched refs:CK_ULONG (Results 1 – 25 of 163) sorted by relevance

1234567

/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpmtok_int.h275 CK_ULONG context_len;
288 CK_ULONG context_len;
298 CK_ULONG context_len;
310 CK_ULONG find_count; // # handles in the list
311 CK_ULONG find_len; // max # of handles in the list
312 CK_ULONG find_idx; // current position
336 CK_ULONG count_hi; // only significant for token objects
337 CK_ULONG count_lo; // only significant for token objects
338 CK_ULONG index;
354 CK_ULONG len;
[all …]
H A Dmech_rsa.c33 CK_ULONG in_data_len,
35 CK_ULONG *out_data_len,
55 CK_ULONG in_data_len, in ckm_rsa_encrypt()
57 CK_ULONG * out_data_len, in ckm_rsa_encrypt()
85 CK_ULONG in_data_len, in ckm_rsa_decrypt()
87 CK_ULONG * out_data_len, in ckm_rsa_decrypt()
117 CK_ULONG in_data_len, in ckm_rsa_sign()
119 CK_ULONG * out_data_len, in ckm_rsa_sign()
147 CK_ULONG in_data_len, in ckm_rsa_verify()
149 CK_ULONG out_data_len, in ckm_rsa_verify()
[all …]
H A Dtemplate.c304 CK_ULONG ulCount) in template_add_attributes()
344 CK_ULONG class, in template_add_default_attributes()
345 CK_ULONG subclass, in template_add_default_attributes()
346 CK_ULONG mode) in template_add_default_attributes()
454 CK_ULONG plcount) in template_attribute_find_multiple()
457 CK_ULONG i; in template_attribute_find_multiple()
471 CK_ULONG class, in template_check_required_attributes()
472 CK_ULONG subclass, in template_check_required_attributes()
473 CK_ULONG mode) in template_check_required_attributes()
542 CK_ULONG mode) in template_check_required_base_attributes()
[all …]
H A Dglobals.c27 CK_ULONG next_session_handle = 1;
28 CK_ULONG next_object_handle = 1;
120 CK_ULONG ber_rsaEncryptionLen = sizeof (ber_rsaEncryption);
121 CK_ULONG ber_md5WithRSAEncryptionLen = sizeof (ber_md5WithRSAEncryption);
122 CK_ULONG ber_sha1WithRSAEncryptionLen = sizeof (ber_sha1WithRSAEncryption);
124 CK_ULONG ber_AlgMd5Len = sizeof (ber_AlgMd5);
125 CK_ULONG ber_AlgSha1Len = sizeof (ber_AlgSha1);
126 CK_ULONG ber_AlgIdRSAEncryptionLen = sizeof (ber_AlgIdRSAEncryption);
173 CK_ULONG mech_list_len = (sizeof (mech_list) / sizeof (MECH_LIST_ELEMENT));
H A Dasn1.c295 CK_ULONG
298 CK_ULONG * ber_int_len, in ber_encode_INTEGER()
300 CK_ULONG data_len) in ber_encode_INTEGER()
303 CK_ULONG len; in ber_encode_INTEGER()
387 CK_ULONG * data_len, in ber_decode_INTEGER()
388 CK_ULONG * field_len) in ber_decode_INTEGER()
390 CK_ULONG len, length_octets; in ber_decode_INTEGER()
448 CK_ULONG * str_len, in ber_encode_OCTET_STRING()
450 CK_ULONG data_len) in ber_encode_OCTET_STRING()
453 CK_ULONG len; in ber_encode_OCTET_STRING()
[all …]
H A Dmech_sha.c34 CK_ULONG in_data_len, in sha1_hash()
36 CK_ULONG *out_data_len) in sha1_hash()
60 CK_ULONG in_data_len, in sha1_hmac_sign()
62 CK_ULONG * out_data_len) { in sha1_hmac_sign()
70 CK_ULONG key_bytes, hash_len, hmac_len; in sha1_hmac_sign()
71 CK_ULONG i; in sha1_hmac_sign()
79 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in sha1_hmac_sign()
218 CK_ULONG in_data_len, in sha1_hmac_verify()
220 CK_ULONG sig_len) in sha1_hmac_verify()
224 CK_ULONG hmac_len, len; in sha1_hmac_verify()
[all …]
H A Dmech_md5.c301 CK_ULONG in_data_len, in md5_hash()
303 CK_ULONG *out_data_len) in md5_hash()
325 CK_ULONG in_data_len, in md5_hmac_sign()
327 CK_ULONG * out_data_len) in md5_hmac_sign()
336 CK_ULONG key_bytes, hash_len, hmac_len; in md5_hmac_sign()
337 CK_ULONG i; in md5_hmac_sign()
345 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in md5_hmac_sign()
488 CK_ULONG in_data_len, in md5_hmac_verify()
490 CK_ULONG sig_len) in md5_hmac_verify()
494 CK_ULONG hmac_len, len; in md5_hmac_verify()
[all …]
H A Dkey_mgr.c34 CK_ULONG keylen, in key_mgr_get_private_key_type()
39 CK_ULONG alg_len; in key_mgr_get_private_key_type()
62 CK_ULONG publ_count, in key_mgr_generate_key_pair()
64 CK_ULONG priv_count, in key_mgr_generate_key_pair()
72 CK_ULONG i, keyclass, subclass = 0; in key_mgr_generate_key_pair()
95 subclass = *(CK_ULONG *)publ_tmpl[i].pValue; in key_mgr_generate_key_pair()
108 CK_ULONG temp = *(CK_ULONG *)priv_tmpl[i].pValue; in key_mgr_generate_key_pair()
238 CK_ULONG * wrapped_key_len) { in key_mgr_wrap_key()
244 CK_ULONG data_len; in key_mgr_wrap_key()
352 CK_ULONG attrib_count, in key_mgr_unwrap_key()
[all …]
H A Dkey.c296 key_object_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) in key_object_check_required_attributes()
312 key_object_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) in key_object_set_default_attributes()
377 CK_ATTRIBUTE *attr, CK_ULONG mode) in key_object_validate_attribute()
402 publ_key_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) { in publ_key_check_required_attributes()
407 publ_key_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) in publ_key_set_default_attributes()
497 CK_ATTRIBUTE *attr, CK_ULONG mode) { in publ_key_validate_attribute()
519 priv_key_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) { in priv_key_check_required_attributes()
524 priv_key_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) in priv_key_set_default_attributes()
654 CK_ULONG keytype, in priv_key_unwrap()
656 CK_ULONG data_len) in priv_key_unwrap()
[all …]
H A Dobject.c305 CK_ULONG ulCount, in object_create()
316 CK_ULONG class = 0xFFFFFFFF, subclass = 0xFFFFFFFF; in object_create()
425 CK_ULONG ulCount, in object_copy()
433 CK_ULONG class, subclass; in object_copy()
651 CK_ULONG
653 CK_ULONG size; in object_get_size()
663 CK_ULONG ulCount) in object_get_attribute_values()
667 CK_ULONG i; in object_get_attribute_values()
680 pTemplate[i].ulValueLen = (CK_ULONG) - 1; in object_get_attribute_values()
688 pTemplate[i].ulValueLen = (CK_ULONG) - 1; in object_get_attribute_values()
[all …]
H A Dcert.c305 cert_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) in cert_check_required_attributes()
328 cert_validate_attribute(TEMPLATE *tmpl, CK_ATTRIBUTE *attr, CK_ULONG mode) in cert_validate_attribute()
350 cert_x509_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) { in cert_x509_check_required_attributes()
375 cert_x509_set_default_attributes(TEMPLATE *tmpl, CK_ULONG mode) in cert_x509_set_default_attributes()
417 CK_ATTRIBUTE *attr, CK_ULONG mode) in cert_x509_validate_attribute()
443 cert_vendor_check_required_attributes(TEMPLATE *tmpl, CK_ULONG mode) in cert_vendor_check_required_attributes()
450 CK_ATTRIBUTE *attr, CK_ULONG mode) in cert_vendor_validate_attribute()
/titanic_50/usr/src/lib/pkcs11/include/
H A Dpkcs11t.h56 typedef unsigned long int CK_ULONG; typedef
63 typedef CK_ULONG CK_FLAGS;
74 typedef CK_ULONG CK_PTR CK_ULONG_PTR;
113 typedef CK_ULONG CK_NOTIFICATION;
120 typedef CK_ULONG CK_SLOT_ID;
161 CK_ULONG ulMaxSessionCount; /* max open sessions */
162 CK_ULONG ulSessionCount; /* sess. now open */
163 CK_ULONG ulMaxRwSessionCount; /* max R/W sessions */
164 CK_ULONG ulRwSessionCount; /* R/W sess. now open */
165 CK_ULONG ulMaxPinLen; /* in bytes */
[all …]
H A Dpkcs11f.h134 CK_ULONG ulPinLen, /* length in bytes of the PIN */
146 CK_ULONG ulPinLen /* length in bytes of the PIN */
157 CK_ULONG ulOldLen, /* length of the old PIN */
159 CK_ULONG ulNewLen /* length of the new PIN */
229 CK_ULONG ulOperationStateLen, /* holds state length */
243 CK_ULONG ulPinLen /* the length of the PIN */
266 CK_ULONG ulCount, /* attributes in template */
280 CK_ULONG ulCount, /* attributes in template */
315 CK_ULONG ulCount /* attributes in template */
328 CK_ULONG ulCount /* attributes in template */
[all …]
/titanic_50/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaGlobal.h222 CK_ULONG generic_ulong;
242 CK_ULONG slotnum;
285 CK_ULONG slotnum;
323 CK_ULONG slotnum; /* slot where the init operation took place */
403 CK_ULONG master_clone_slotnum; /* set when object is created */
426 CK_ULONG op_slotnum;
427 CK_ULONG op_state_len;
572 CK_RV meta_get_slot_session(CK_ULONG slotnum, slot_session_t **session,
578 CK_RV meta_mechManager_get_mechs(CK_MECHANISM_TYPE *list, CK_ULONG *listsize);
582 CK_ULONG slotnum, boolean_t *supports, mechinfo_t **slot_info,
[all …]
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftOps.h42 CK_RV soft_digest(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
45 CK_RV soft_digest_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG);
55 CK_RV soft_encrypt(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
58 CK_RV soft_encrypt_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
68 CK_RV soft_decrypt(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
71 CK_RV soft_decrypt_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
78 CK_RV soft_sign(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
81 CK_RV soft_sign_update(soft_session_t *, CK_BYTE_PTR, CK_ULONG);
87 CK_RV soft_verify(soft_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,
88 CK_ULONG);
[all …]
H A DsoftKeys.h46 CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR);
49 CK_ULONG, CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR,
53 CK_ATTRIBUTE_PTR, CK_ULONG, CK_OBJECT_HANDLE_PTR);
57 CK_RV soft_gen_keyobject(CK_ATTRIBUTE_PTR, CK_ULONG,
58 CK_ULONG *, soft_session_t *, CK_OBJECT_CLASS, CK_KEY_TYPE,
59 CK_ULONG, CK_ULONG, boolean_t);
68 CK_BYTE_PTR, CK_ULONG, CK_ATTRIBUTE_PTR, CK_ULONG,
H A DsoftCrypt.h81 CK_RV soft_des_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
84 CK_RV soft_des_decrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
88 CK_ULONG ulDataLen, CK_BYTE_PTR pSigned, CK_ULONG_PTR pulSignedLen,
95 CK_BYTE_PTR pPart, CK_ULONG ulPartLen);
97 void soft_add_pkcs7_padding(CK_BYTE *, int, CK_ULONG);
99 CK_RV soft_remove_pkcs7_padding(CK_BYTE *, CK_ULONG, CK_ULONG *);
104 CK_RV soft_arcfour_crypt(crypto_active_op_t *, CK_BYTE_PTR, CK_ULONG,
113 CK_RV soft_aes_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
116 CK_RV soft_aes_decrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
124 CK_RV soft_blowfish_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
[all …]
H A DsoftRSA.h59 CK_RV soft_rsa_encrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
62 CK_RV soft_rsa_decrypt_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
68 CK_RV soft_rsa_verify_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
69 CK_BYTE_PTR, CK_ULONG, CK_MECHANISM_TYPE);
71 CK_RV soft_rsa_sign_common(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
75 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, CK_MECHANISM_TYPE, boolean_t);
78 CK_ULONG, CK_BYTE_PTR, CK_ULONG, CK_MECHANISM_TYPE, boolean_t);
82 CK_RV soft_rsa_verify_recover(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
H A DsoftDSA.h56 CK_RV soft_dsa_verify(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
57 CK_BYTE_PTR, CK_ULONG);
59 CK_RV soft_dsa_sign(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
65 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, boolean_t);
68 CK_ULONG, CK_BYTE_PTR, CK_ULONG, boolean_t);
H A DsoftEC.h55 extern CK_RV soft_ecc_sign(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
57 extern CK_RV soft_ecc_verify(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
58 CK_BYTE_PTR, CK_ULONG);
60 CK_ULONG, CK_BYTE_PTR, CK_ULONG_PTR, boolean_t);
62 CK_ULONG, CK_BYTE_PTR, CK_ULONG, boolean_t);
H A DsoftKeysUtil.c62 soft_gen_keyobject(CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, in soft_gen_keyobject()
63 CK_ULONG *objecthandle_p, soft_session_t *sp, in soft_gen_keyobject()
64 CK_OBJECT_CLASS class, CK_KEY_TYPE key_type, CK_ULONG keylen, CK_ULONG mode, in soft_gen_keyobject()
117 *objecthandle_p = (CK_ULONG)new_objp; in soft_gen_keyobject()
128 *objecthandle_p = (CK_ULONG)new_objp; in soft_gen_keyobject()
154 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) in soft_genkey()
160 CK_ULONG keylen = 0; in soft_genkey()
161 CK_ULONG i; in soft_genkey()
233 keylen = *((CK_ULONG*)pTemplate[i].pValue); in soft_genkey()
417 CK_ATTRIBUTE_PTR pPublicKeyTemplate, CK_ULONG ulPublicAttrCount, in soft_genkey_pair()
[all …]
H A DsoftObject.h51 CK_ULONG big_value_len;
60 CK_ULONG sk_value_len;
71 CK_ULONG modulus_bits;
162 CK_ULONG value_bits;
204 CK_ULONG prime_bits;
214 CK_ULONG prime_bits;
225 CK_ULONG prime_bits;
226 CK_ULONG subprime_bits;
242 CK_ULONG length;
334 CK_ULONG num_results;
[all …]
H A DsoftSession.h49 CK_ULONG op_len;
52 CK_ULONG op_active;
172 extern CK_ULONG soft_session_cnt; /* the number of opened sessions */
173 extern CK_ULONG soft_session_rw_cnt; /* the number of opened R/W sessions */
186 CK_NOTIFY notify, CK_ULONG *phSession);
192 CK_RV soft_set_operationstate(soft_session_t *, CK_BYTE_PTR, CK_ULONG,
198 CK_RV soft_login(CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen);
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSoftCommon.h49 CK_ULONG ulBufLen, CK_BYTE_PTR pDigest,
53 CK_ULONG klen, int opflag);
55 CK_ULONG ulBufLen, int opflag);
56 CK_RV do_soft_hmac_sign(void **s, CK_BYTE_PTR pBuf, CK_ULONG ulBufLen,
58 CK_RV do_soft_hmac_verify(void **s, CK_BYTE_PTR pBuf, CK_ULONG ulBufLen,
59 CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, int opflag);
H A DkernelGlobal.h85 void get_ulong_attr_from_template(CK_ULONG *, CK_ATTRIBUTE_PTR);
86 CK_RV process_object_attributes(CK_ATTRIBUTE_PTR, CK_ULONG, caddr_t *,
88 CK_RV get_object_attributes(CK_ATTRIBUTE_PTR, CK_ULONG, caddr_t);
89 void free_object_attributes(caddr_t, CK_ULONG);
93 CK_ULONG *, crypto_object_find_update_t);
98 CK_RV kernel_decrypt(kernel_session_t *, CK_BYTE_PTR, CK_ULONG, CK_BYTE_PTR,

1234567