Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
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
503 hmac_len = MD5_DIGEST_LENGTH; in md5_hmac_verify()
521 if ((len != hmac_len) || (len != sig_len)) { in md5_hmac_verify()
[all …]
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
233 hmac_len = SHA1_DIGEST_LENGTH; in sha1_hmac_verify()
247 if ((len != hmac_len) || (len != sig_len)) { in sha1_hmac_verify()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftMAC.c87 hmac_ctx->hmac_len = MD5_HASH_SIZE; in soft_hmac_sign_verify_init_common()
91 hmac_ctx->hmac_len = SHA1_HASH_SIZE; in soft_hmac_sign_verify_init_common()
95 hmac_ctx->hmac_len = SHA256_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
99 hmac_ctx->hmac_len = SHA384_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
103 hmac_ctx->hmac_len = SHA512_DIGEST_LENGTH; in soft_hmac_sign_verify_init_common()
115 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common()
481 *pulSignedLen = hmac_ctx->hmac_len; in soft_hmac_sign_verify_common()
486 if (*pulSignedLen < hmac_ctx->hmac_len) { in soft_hmac_sign_verify_common()
487 *pulSignedLen = hmac_ctx->hmac_len; in soft_hmac_sign_verify_common()
541 hmac_ctx->hmac_len = SHA384_DIGEST_LENGTH; in soft_hmac_sign_verify_common()
[all …]
H A DsoftVerifyUtil.c164 len = hmac_ctx->hmac_len; in soft_verify()
387 len = hmac_ctx->hmac_len; in soft_verify_final()
H A DsoftMAC.h86 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
1365 hmac_len = OBJ_HMAC_SIZE; in reencrypt_obj()
1367 encrypted_len, hmac, &hmac_len) != CKR_OK) { in reencrypt_obj()
1373 if (hmac_len != OBJ_HMAC_SIZE) { in reencrypt_obj()
/illumos-gate/usr/src/test/crypto-tests/tests/hmac/
H A Dmain.c27 extern size_t hmac_len;
55 errs += run_test(&args, HMAC[i], hmac_len, MAC_FG); in main()
H A Dhmac_sha1.c207 size_t hmac_len = SHA1_DIGEST_LENGTH; variable
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelSoftCommon.c205 len = hmac_ctx->hmac_len; in do_soft_hmac_verify()