Home
last modified time | relevance | path

Searched refs:kernel_fd (Results 1 – 16 of 16) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelGeneral.c116 int kernel_fd = -1; variable
205 while ((kernel_fd = open(CRYPTO_DEVICE, O_RDWR)) < 0) { in C_Initialize()
209 if (kernel_fd < 0) { in C_Initialize()
215 (void) fcntl(kernel_fd, F_SETFD, FD_CLOEXEC); in C_Initialize()
220 (void) close(kernel_fd); in C_Initialize()
229 (void) close(kernel_fd); in C_Initialize()
319 if (kernel_fd >= 0) { in finalize_common()
320 (void) close(kernel_fd); in finalize_common()
335 kernel_fd = -1; in finalize_common()
H A DkernelSlotToken.c100 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_INFO, &gi)) < 0) { in C_GetSlotInfo()
152 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_INFO, &gi)) < 0) { in C_GetTokenInfo()
255 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISMS, in C_GetMechanismList()
278 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISMS, pm)) < 0) { in C_GetMechanismList()
303 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISM_INFO, in C_GetMechanismList()
446 while ((r = ioctl(kernel_fd, CRYPTO_SET_PIN, &setpin)) < 0) { in C_SetPIN()
H A DkernelSlottable.c47 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_LIST, pl)) < 0) { in kernel_get_slot_number()
113 while ((r = ioctl(kernel_fd, CRYPTO_GET_FUNCTION_LIST, &fl)) < 0) { in kernel_get_func_list()
224 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_LIST, pl)) < 0) { in kernel_slottable_init()
H A DkernelRand.c61 while ((r = ioctl(kernel_fd, CRYPTO_SEED_RANDOM, &seed_random)) < 0) { in C_SeedRandom()
107 while ((r = ioctl(kernel_fd, CRYPTO_GENERATE_RANDOM, in C_GenerateRandom()
H A DkernelDigest.c103 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST_INIT, &digest_init)) < 0) { in common_digest_init()
243 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST, &digest)) < 0) { in C_Digest()
355 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST_UPDATE, in C_DigestUpdate()
478 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST_KEY, in C_DigestKey()
517 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST_UPDATE, in C_DigestKey()
656 while ((r = ioctl(kernel_fd, CRYPTO_DIGEST_FINAL, &digest_final)) < 0) { in C_DigestFinal()
H A DkernelVerify.c133 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY_INIT, &verify_init)) < 0) { in C_VerifyInit()
245 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY, &verify)) < 0) { in C_Verify()
324 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY_UPDATE, in C_VerifyUpdate()
431 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY_FINAL, &verify_final)) < 0) { in C_VerifyFinal()
533 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY_RECOVER_INIT, in C_VerifyRecoverInit()
606 while ((r = ioctl(kernel_fd, CRYPTO_VERIFY_RECOVER, in C_VerifyRecover()
H A DkernelObject.c208 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_COPY, in C_CopyObject()
468 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_GET_ATTRIBUTE_VALUE, in C_GetAttributeValue()
579 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_SET_ATTRIBUTE_VALUE, in C_SetAttributeValue()
701 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_GET_SIZE, in C_GetObjectSize()
792 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_FIND_INIT, in C_FindObjectsInit()
890 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_FIND_UPDATE, in C_FindObjects()
965 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_FIND_FINAL, in C_FindObjectsFinal()
H A DkernelEncrypt.c131 while ((r = ioctl(kernel_fd, CRYPTO_ENCRYPT_INIT, &encrypt_init)) < 0) { in C_EncryptInit()
253 while ((r = ioctl(kernel_fd, CRYPTO_ENCRYPT, &encrypt)) < 0) { in C_Encrypt()
360 while ((r = ioctl(kernel_fd, CRYPTO_ENCRYPT_UPDATE, in C_EncryptUpdate()
439 while ((r = ioctl(kernel_fd, CRYPTO_ENCRYPT_FINAL, in C_EncryptFinal()
H A DkernelSign.c130 while ((r = ioctl(kernel_fd, CRYPTO_SIGN_INIT, &sign_init)) < 0) { in C_SignInit()
247 while ((r = ioctl(kernel_fd, CRYPTO_SIGN, &sign)) < 0) { in C_Sign()
342 while ((r = ioctl(kernel_fd, CRYPTO_SIGN_UPDATE, &sign_update)) < 0) { in C_SignUpdate()
459 while ((r = ioctl(kernel_fd, CRYPTO_SIGN_FINAL, &sign_final)) < 0) { in C_SignFinal()
577 while ((r = ioctl(kernel_fd, CRYPTO_SIGN_RECOVER_INIT, &sr_init)) < 0) { in C_SignRecoverInit()
646 while ((r = ioctl(kernel_fd, CRYPTO_SIGN_RECOVER, &sign_recover)) < 0) { in C_SignRecover()
H A DkernelDecrypt.c112 while ((r = ioctl(kernel_fd, CRYPTO_DECRYPT_INIT, &decrypt_init)) < 0) { in kernel_decrypt_init()
248 while ((r = ioctl(kernel_fd, CRYPTO_DECRYPT, &decrypt)) < 0) { in kernel_decrypt()
390 while ((r = ioctl(kernel_fd, CRYPTO_DECRYPT_UPDATE, in C_DecryptUpdate()
469 while ((r = ioctl(kernel_fd, CRYPTO_DECRYPT_FINAL, in C_DecryptFinal()
H A DkernelGlobal.h48 extern int kernel_fd;
H A DkernelKeys.c310 while ((r = ioctl(kernel_fd, CRYPTO_NOSTORE_GENERATE_KEY, in key_gen_by_value()
443 while ((r = ioctl(kernel_fd, CRYPTO_GENERATE_KEY, in C_GenerateKey()
759 while ((r = ioctl(kernel_fd, CRYPTO_NOSTORE_GENERATE_KEY_PAIR, in key_gen_rsa_by_value()
1035 while ((r = ioctl(kernel_fd, CRYPTO_NOSTORE_GENERATE_KEY_PAIR, in key_gen_dh_by_value()
1312 while ((r = ioctl(kernel_fd, CRYPTO_NOSTORE_GENERATE_KEY_PAIR, in key_gen_ec_by_value()
1548 while ((r = ioctl(kernel_fd, CRYPTO_GENERATE_KEY_PAIR, in C_GenerateKeyPair()
1716 while ((r = ioctl(kernel_fd, CRYPTO_WRAP_KEY, &obj_wrapkey)) < 0) { in C_WrapKey()
1899 while ((r = ioctl(kernel_fd, CRYPTO_UNWRAP_KEY, &obj_unwrapkey)) < 0) { in C_UnwrapKey()
2271 while ((r = ioctl(kernel_fd, CRYPTO_NOSTORE_DERIVE_KEY, in derive_key_by_value()
2414 while ((r = ioctl(kernel_fd, CRYPTO_DERIVE_KEY, &obj_dk)) < 0) { in C_DeriveKey()
H A DkernelSessionUtil.c129 while ((r = ioctl(kernel_fd, CRYPTO_OPEN_SESSION, &open_session)) < 0) { in kernel_add_session()
345 while (ioctl(kernel_fd, CRYPTO_CLOSE_SESSION, in kernel_delete_session()
H A DkernelSession.c508 while ((r = ioctl(kernel_fd, CRYPTO_LOGIN, &c_login)) < 0) { in C_Login()
564 while ((r = ioctl(kernel_fd, CRYPTO_LOGOUT, &c_logout)) < 0) { in C_Logout()
H A DkernelObjectUtil.c251 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_CREATE, in kernel_add_object()
515 while (ioctl(kernel_fd, CRYPTO_OBJECT_DESTROY, in kernel_delete_session_object()
845 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_DESTROY, in kernel_delete_token_object()
H A DkernelUtil.c228 while ((r = ioctl(kernel_fd, CRYPTO_GET_MECHANISM_NUMBER, in kernel_mech()
971 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_GET_ATTRIBUTE_VALUE, in create_new_tobj_in_lib()
1207 while ((r = ioctl(kernel_fd, CRYPTO_OBJECT_GET_ATTRIBUTE_VALUE, in get_cka_private_value()
1251 while ((r = ioctl(kernel_fd, CRYPTO_GET_PROVIDER_MECHANISM_INFO, in get_mechanism_info()