Home
last modified time | relevance | path

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

12

/netbsd/external/mpl/bind/dist/lib/isc/include/pk11/
H A Dpk11.h180 CK_CHAR_PTR pPin, CK_ULONG usPinLen);
194 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount);
198 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount);
202 CK_ULONG usCount);
225 CK_ULONG ulPartLen);
241 CK_ULONG ulPartLen);
257 CK_ULONG ulPartLen);
261 CK_ULONG ulSignatureLen);
271 CK_ULONG usPublicKeyAttributeCount,
284 CK_ULONG ulSeedLen);
[all …]
/netbsd/external/mpl/bind/dist/bin/tests/pkcs11/benchmarks/
H A Dsign.c162 CK_ULONG len; in main()
163 CK_ULONG slen; in main()
168 { CKA_CLASS, &kClass, (CK_ULONG)sizeof(kClass) }, in main()
169 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
176 { CKA_PRIME_1, prime1, (CK_ULONG)sizeof(prime1) }, in main()
177 { CKA_PRIME_2, prime2, (CK_ULONG)sizeof(prime2) }, in main()
178 { CKA_EXPONENT_1, exp_1, (CK_ULONG)sizeof(exp_1) }, in main()
179 { CKA_EXPONENT_2, exp_2, (CK_ULONG)sizeof(exp_2) }, in main()
180 { CKA_COEFFICIENT, coeff, (CK_ULONG)sizeof(coeff) } in main()
273 len = (CK_ULONG)sizeof(buf); in main()
[all …]
H A Dprivrsa.c165 { CKA_CLASS, &kClass, (CK_ULONG)sizeof(kClass) }, in main()
166 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
167 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
168 { CKA_PRIVATE, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
170 { CKA_SIGN, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
171 { CKA_MODULUS, modulus, (CK_ULONG)sizeof(modulus) }, in main()
174 { CKA_PRIME_1, prime1, (CK_ULONG)sizeof(prime1) }, in main()
175 { CKA_PRIME_2, prime2, (CK_ULONG)sizeof(prime2) }, in main()
176 { CKA_EXPONENT_1, exp_1, (CK_ULONG)sizeof(exp_1) }, in main()
177 { CKA_EXPONENT_2, exp_2, (CK_ULONG)sizeof(exp_2) }, in main()
[all …]
H A Dgenrsa.c102 CK_ULONG bits = 1024; in main()
105 { CKA_CLASS, &pubClass, (CK_ULONG)sizeof(pubClass) }, in main()
106 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
107 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
109 { CKA_VERIFY, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
110 { CKA_MODULUS_BITS, &bits, (CK_ULONG)sizeof(bits) }, in main()
114 { CKA_CLASS, &privClass, (CK_ULONG)sizeof(privClass) }, in main()
115 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
116 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
118 { CKA_SIGN, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
[all …]
H A Dverify.c114 CK_ULONG len; in main()
115 CK_ULONG slen; in main()
120 { CKA_CLASS, &kClass, (CK_ULONG)sizeof(kClass) }, in main()
121 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
122 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
123 { CKA_PRIVATE, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
124 { CKA_VERIFY, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
125 { CKA_MODULUS, modulus, (CK_ULONG)sizeof(modulus) }, in main()
126 { CKA_PUBLIC_EXPONENT, exponent, (CK_ULONG)sizeof(exponent) } in main()
220 len = (CK_ULONG)sizeof(buf); in main()
[all …]
H A Dpubrsa.c117 { CKA_CLASS, &kClass, (CK_ULONG)sizeof(kClass) }, in main()
118 { CKA_KEY_TYPE, &kType, (CK_ULONG)sizeof(kType) }, in main()
119 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
120 { CKA_PRIVATE, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
121 { CKA_LABEL, (CK_BYTE_PTR)label, (CK_ULONG)sizeof(label) }, in main()
122 { CKA_VERIFY, &truevalue, (CK_ULONG)sizeof(truevalue) }, in main()
123 { CKA_MODULUS, modulus, (CK_ULONG)sizeof(modulus) }, in main()
124 { CKA_PUBLIC_EXPONENT, exponent, (CK_ULONG)sizeof(exponent) } in main()
H A Dcreate.c101 CK_ULONG len = sizeof(buf); in main()
103 { CKA_CLASS, &kClass, (CK_ULONG)sizeof(kClass) }, in main()
104 { CKA_TOKEN, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
105 { CKA_PRIVATE, &falsevalue, (CK_ULONG)sizeof(falsevalue) }, in main()
106 { CKA_LABEL, (CK_BYTE_PTR)label, (CK_ULONG)sizeof(label) }, in main()
107 { CKA_VALUE, buf, (CK_ULONG)sizeof(buf) } in main()
H A Dfind.c96 { CKA_LABEL, label, (CK_ULONG)sizeof(label) }, in main()
99 CK_ULONG found = 0; in main()
H A Dsha1.c96 CK_ULONG len = sizeof(buf); in main()
/netbsd/external/mpl/bind/dist/lib/dns/
H A Dpkcs11ecdsa_link.c122 CK_ULONG len = ISC_SHA384_DIGESTLENGTH; in pkcs11ecdsa_destroyctx()
149 (CK_ULONG)data->length), in pkcs11ecdsa_adddata()
163 { CKA_CLASS, &keyClass, (CK_ULONG)sizeof(keyClass) }, in pkcs11ecdsa_sign()
173 CK_ULONG dgstlen; in pkcs11ecdsa_sign()
174 CK_ULONG siglen; in pkcs11ecdsa_sign()
296 CK_ULONG dgstlen; in pkcs11ecdsa_verify()
354 (CK_ULONG)sig->length), in pkcs11ecdsa_verify()
526 privTemplate, (CK_ULONG)7, &pub, &priv), in pkcs11ecdsa_generate()
789 CK_ULONG cnt; in pkcs11ecdsa_fetch()
1008 CK_ULONG cnt; in pkcs11ecdsa_fromlabel()
[all …]
H A Dpkcs11eddsa_link.c124 { CKA_CLASS, &keyClass, (CK_ULONG)sizeof(keyClass) }, in pkcs11eddsa_sign()
125 { CKA_KEY_TYPE, &keyType, (CK_ULONG)sizeof(keyType) }, in pkcs11eddsa_sign()
128 { CKA_SIGN, &truevalue, (CK_ULONG)sizeof(truevalue) }, in pkcs11eddsa_sign()
133 CK_ULONG siglen; in pkcs11eddsa_sign()
328 (CK_BYTE_PTR)sig->base, (CK_ULONG)sig->length), in pkcs11eddsa_verify()
499 privTemplate, (CK_ULONG)7, &pub, &priv), in pkcs11eddsa_generate()
760 CK_ULONG cnt; in pkcs11eddsa_fetch()
820 (pk11_ctx->session, searchTemplate, (CK_ULONG)4), in pkcs11eddsa_fetch()
979 CK_ULONG cnt; in pkcs11eddsa_fromlabel()
1024 (pk11_ctx->session, searchTemplate, (CK_ULONG)4), in pkcs11eddsa_fromlabel()
[all …]
H A Dpkcs11rsa_link.c495 CK_ULONG siglen = 0; in pkcs11rsa_sign()
693 CK_ULONG derlen; in pkcs11rsa_sign()
694 CK_ULONG hashlen; in pkcs11rsa_sign()
695 CK_ULONG dgstlen; in pkcs11rsa_sign()
696 CK_ULONG siglen = 0; in pkcs11rsa_sign()
918 CK_ULONG derlen; in pkcs11rsa_verify()
919 CK_ULONG hashlen; in pkcs11rsa_verify()
920 CK_ULONG dgstlen; in pkcs11rsa_verify()
1093 CK_ULONG bits = 0; in pkcs11rsa_generate()
1591 CK_ULONG cnt; in pkcs11rsa_fetch()
[all …]
/netbsd/crypto/external/cpl/tpm-tools/dist/include/
H A Dtpm_pkcs11.h34 CK_ULONG *a_pulDataLen,
39 CK_ULONG a_ulDataLen,
74 CK_ULONG a_ulAttrCount,
79 CK_ULONG a_ulAttrCount,
87 CK_ULONG a_ulAttrCount );
91 CK_ULONG a_ulAttrCount,
93 CK_ULONG *a_pulObjCount );
/netbsd/external/mpl/bind/dist/lib/isc/win32/
H A Dpk11_api.c227 CK_CHAR_PTR pPin, CK_ULONG usPinLen) { in pkcs_C_Login()
296 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) { in pkcs_C_GetAttributeValue()
334 CK_ULONG usCount) { in pkcs_C_FindObjectsInit()
440 CK_ULONG ulPartLen) { in pkcs_C_DigestUpdate()
510 CK_ULONG ulPartLen) { in pkcs_C_SignUpdate()
578 CK_ULONG ulPartLen) { in pkcs_C_VerifyUpdate()
596 CK_ULONG ulSignatureLen) { in pkcs_C_VerifyFinal()
632 CK_ULONG usPublicKeyAttributeCount, in pkcs_C_GenerateKeyPair()
634 CK_ULONG usPrivateKeyAttributeCount, in pkcs_C_GenerateKeyPair()
676 CK_ULONG ulSeedLen) { in pkcs_C_SeedRandom()
[all …]
/netbsd/external/mpl/bind/dist/lib/isc/unix/
H A Dpk11_api.c190 CK_CHAR_PTR pPin, CK_ULONG usPinLen) { in pkcs_C_Login()
264 CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) { in pkcs_C_GetAttributeValue()
304 CK_ULONG usCount) { in pkcs_C_FindObjectsInit()
418 CK_ULONG ulPartLen) { in pkcs_C_DigestUpdate()
495 CK_ULONG ulPartLen) { in pkcs_C_SignUpdate()
571 CK_ULONG ulPartLen) { in pkcs_C_VerifyUpdate()
590 CK_ULONG ulSignatureLen) { in pkcs_C_VerifyFinal()
630 CK_ULONG usPublicKeyAttributeCount, in pkcs_C_GenerateKeyPair()
632 CK_ULONG usPrivateKeyAttributeCount, in pkcs_C_GenerateKeyPair()
676 CK_ULONG ulSeedLen) { in pkcs_C_SeedRandom()
[all …]
/netbsd/crypto/external/cpl/tpm-tools/dist/lib/
H A Dtpm_pkcs11.c148 CK_ULONG ulSlots; in openToken()
531 CK_ULONG ulCount = 0; in findObjects()
532 CK_ULONG ulCurCount = 0; in findObjects()
533 CK_ULONG ulMaxCount = 0; in findObjects()
658 CK_ULONG ulAttrCount; in displayCertObject()
693 CK_ULONG ulMalloc; in displayCertObject()
1080 CK_ULONG ulInDataLen = 0; in encryptData()
1084 CK_ULONG ulBufferLen = 0; in encryptData()
1085 CK_ULONG ulOutDataLen = 0; in encryptData()
1172 CK_ULONG ulInDataLen = 0; in decryptData()
[all …]
/netbsd/crypto/external/cpl/tpm-tools/dist/src/data_mgmt/
H A Ddata_protect.c46 CK_ULONG g_ulOutBuffLen = 0; // Output file buffer length
48 CK_ULONG g_ulOutDataLen = 0; // Length of data contained in output buffer
177 CK_ULONG ulKeyLen = 32; in makeKey()
196 CK_ULONG ulAttrCount = sizeof( tAttr ) / sizeof( CK_ATTRIBUTE ); in makeKey()
227 CK_ULONG ulAttrCount = sizeof( tAttr ) / sizeof( CK_ATTRIBUTE ); in getKey()
229 CK_ULONG ulObjCount = 0; in getKey()
273 CK_ULONG *a_pulDataLen, in readData()
277 CK_ULONG iBytes; in readData()
345 CK_ULONG a_ulDataLen, in writeData()
H A Ddata_import.c57 CK_ULONG g_ulIdLen = 0;
59 CK_ULONG g_ulNameLen = 0;
198 CK_ULONG a_ulAttrCount, in findExistingObjects()
200 CK_ULONG *a_pulObjectCount ) { in findExistingObjects()
214 CK_ULONG ulAttrCount = sizeof( tAttr ) / sizeof( CK_ATTRIBUTE ); in findExistingObjects()
238 CK_ULONG a_ulAttrCount, in checkExistingObjects()
244 CK_ULONG ulObjectCount = 0; in checkExistingObjects()
286 CK_ULONG a_ulAttrCount ) { in destroyExistingObjects()
292 CK_ULONG ulObjectCount = 0; in destroyExistingObjects()
725 CK_ULONG ulAttrCount = sizeof( tAttr ) / sizeof( CK_ATTRIBUTE ); in createRsaPubKeyObject()
[all …]
H A Ddata_object.c119 CK_ULONG ulCount; in main()
/netbsd/crypto/external/bsd/heimdal/dist/lib/hx509/
H A Dsoftp11.c204 CK_ULONG num_attributes) in attributes_match()
206 CK_ULONG i; in attributes_match()
235 CK_ULONG i; in print_attributes()
660 CK_ULONG i; in find_object_final()
1119 CK_ULONG ulPinLen, in C_InitToken()
1215 CK_ULONG ulPinLen) in C_Login()
1274 CK_ULONG ulCount) in C_GetAttributeValue()
1278 CK_ULONG i; in C_GetAttributeValue()
1323 CK_ULONG ulCount) in C_FindObjectsInit()
1338 CK_ULONG i; in C_FindObjectsInit()
[all …]
H A Dtest_soft_pkcs11.c49 CK_ULONG object_count; in find_object()
55 CK_ULONG num_search_data = sizeof(search_data)/sizeof(search_data[0]); in find_object()
87 CK_ULONG num_slots; in main()
155 CK_ULONG ck_sigsize; in main()
187 CK_ULONG ck_sigsize, outsize; in main()
H A Dks_p11.c60 CK_ULONG num;
68 CK_ULONG num_slots;
136 CK_ULONG ck_sigsize; in p11_rsa_private_encrypt()
174 CK_ULONG ck_sigsize; in p11_rsa_private_decrypt()
249 CK_ULONG i; in p11_mech_info()
527 CK_ULONG object_count; in iterate_entries()
/netbsd/crypto/external/bsd/openssh/dist/
H A Dssh-pkcs11.c57 CK_ULONG nslots;
69 CK_ULONG slotidx;
106 CK_ULONG i; in pkcs11_provider_finalize()
216 CK_ULONG nfound = 0; in pkcs11_find()
423 CK_ULONG tlen = 0; in pkcs11_rsa_private_encrypt()
513 CK_ULONG siglen = 0, bnlen; in ecdsa_do_sign()
639 CK_ULONG user) in pkcs11_open_session()
1098 CK_ULONG n = 0; in pkcs11_fetch_certs()
1203 CK_ULONG n = 0; in pkcs11_fetch_keys()
1499 CK_ULONG i; in pkcs11_register_provider()
[all …]
/netbsd/external/mpl/bind/dist/bin/pkcs11/
H A Dpkcs11-keygen.c194 CK_ULONG bits = 0; in main()
198 CK_ULONG expsize = 0; in main()
206 CK_ULONG ulObjectCount; in main()
209 CK_ULONG public_attrcnt = 0, private_attrcnt = PRIVATE_ATTRS; in main()
/netbsd/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Devp-pkcs11.c183 CK_ULONG i, ulSlotCount = 0; in p11_session_init()
373 CK_ULONG ulCipherTextLen = size; in p11_do_cipher()
456 CK_ULONG digestLen = 0; in p11_md_final()

12