Home
last modified time | relevance | path

Searched refs:hash_sha (Results 1 – 3 of 3) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dtpm_specific.c1559 CK_BYTE hash_sha[SHA1_DIGEST_LENGTH]; in token_specific_login() local
1568 if ((rc = compute_sha(pPin, ulPinLen, hash_sha))) { in token_specific_login()
1590 if (memcmp(hash_sha, in token_specific_login()
1599 if ((rc = verify_user_pin(hContext, hash_sha))) { in token_specific_login()
1603 (void) memcpy(current_user_pin_sha, hash_sha, in token_specific_login()
1622 if (memcmp(hash_sha, in token_specific_login()
1647 &publicLeafKeyUUID, hPublicRootKey, hash_sha, in token_specific_login()
1657 (void) memcpy(current_so_pin_sha, hash_sha, SHA1_DIGEST_LENGTH); in token_specific_login()
1735 verify_user_pin(TSS_HCONTEXT hContext, CK_BYTE *hash_sha) in verify_user_pin() argument
1767 &privateLeafKeyUUID, hPrivateRootKey, hash_sha, in verify_user_pin()
[all …]
H A Dloadsave.c747 CK_BYTE hash_sha[SHA1_DIGEST_LENGTH]; in save_private_token_object() local
774 if ((rc = compute_sha(obj_data, obj_data_len_32, hash_sha)) != CKR_OK) in save_private_token_object()
804 (void) memcpy(ptr, hash_sha, SHA1_DIGEST_LENGTH); in save_private_token_object()
1041 CK_BYTE hash_sha[SHA1_DIGEST_LENGTH]; in restore_private_token_object() local
1084 if ((rc = compute_sha(ptr, obj_data_len, hash_sha)) != CKR_OK) in restore_private_token_object()
1088 if (memcmp((const void *)ptr, (const void *)hash_sha, in restore_private_token_object()
H A Dnew_host.c378 CK_BYTE hash_sha[SHA1_DIGEST_LENGTH]; in SC_InitToken() local
431 (void) memcpy(newtoken.so_pin_sha, hash_sha, in SC_InitToken()