Home
last modified time | relevance | path

Searched refs:hmac_len (Results 1 – 7 of 7) sorted by relevance

/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dmech_sha.c70 CK_ULONG key_bytes, hash_len, hmac_len; in sha1_hmac_sign() local
79 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in sha1_hmac_sign()
81 if (hmac_len == 0) { in sha1_hmac_sign()
86 hmac_len = SHA1_DIGEST_LENGTH; in sha1_hmac_sign()
89 *out_data_len = hmac_len; in sha1_hmac_sign()
206 (void) memcpy(out_data, hash, hmac_len); in sha1_hmac_sign()
207 *out_data_len = hmac_len; in sha1_hmac_sign()
224 CK_ULONG hmac_len, len; in sha1_hmac_verify() local
231 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in sha1_hmac_verify()
233 hmac_len = SHA1_DIGEST_LENGTH; in sha1_hmac_verify()
[all …]
H A Dmech_md5.c336 CK_ULONG key_bytes, hash_len, hmac_len; in md5_hmac_sign() local
345 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in md5_hmac_sign()
347 if (hmac_len == 0) { in md5_hmac_sign()
353 hmac_len = MD5_DIGEST_LENGTH; in md5_hmac_sign()
356 *out_data_len = hmac_len; in md5_hmac_sign()
477 (void) memcpy(out_data, hash, hmac_len); in md5_hmac_sign()
478 *out_data_len = hmac_len; in md5_hmac_sign()
494 CK_ULONG hmac_len, len; in md5_hmac_verify() local
501 hmac_len = *(CK_ULONG *)ctx->mech.pParameter; in md5_hmac_verify()
503 hmac_len = MD5_DIGEST_LENGTH; in md5_hmac_verify()
[all …]
/titanic_50/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c88 hmac_ctx->hmac_len = MD5_HASH_SIZE; in soft_hmac_sign_verify_init_common()
92 hmac_ctx->hmac_len = SHA1_HASH_SIZE; in soft_hmac_sign_verify_init_common()
96 hmac_ctx->hmac_len = SHA256_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
100 hmac_ctx->hmac_len = SHA384_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
104 hmac_ctx->hmac_len = SHA512_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
116 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
129 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
141 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
155 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
482 *pulSignedLen = hmac_ctx->hmac_len; in soft_hmac_sign_verify_common()
[all …]
H A DsoftVerifyUtil.c158 len = hmac_ctx->hmac_len; in soft_verify()
349 len = hmac_ctx->hmac_len; in soft_verify_final()
H A DsoftMAC.h88 size_t hmac_len; /* digest len in bytes */ member
H A DsoftKeystoreUtil.c1251 CK_ULONG decrypted_len, encrypted_len, hmac_len; in reencrypt_obj() local
1366 hmac_len = OBJ_HMAC_SIZE; in reencrypt_obj()
1368 encrypted_len, hmac, &hmac_len) != CKR_OK) { in reencrypt_obj()
1374 if (hmac_len != OBJ_HMAC_SIZE) { in reencrypt_obj()
/titanic_50/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSoftCommon.c206 len = hmac_ctx->hmac_len; in do_soft_hmac_verify()