Searched refs:hmac_len (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | mech_md5.c | 336 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 …]
|
H A D | mech_sha.c | 70 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 …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softMAC.c | 87 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() 128 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common() 140 hmac_ctx->hmac_len = *((CK_MAC_GENERAL_PARAMS_PTR) in soft_hmac_sign_verify_init_common() 154 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() [all …]
|
H A D | softVerifyUtil.c | 164 len = hmac_ctx->hmac_len; in soft_verify() 387 len = hmac_ctx->hmac_len; in soft_verify_final()
|
H A D | softMAC.h | 86 size_t hmac_len; /* digest len in bytes */ member
|
H A D | softKeystoreUtil.c | 1251 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 D | main.c | 27 extern size_t hmac_len; 55 errs += run_test(&args, HMAC[i], hmac_len, MAC_FG); in main()
|
H A D | hmac_sha1.c | 207 size_t hmac_len = SHA1_DIGEST_LENGTH; variable
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSoftCommon.c | 205 len = hmac_ctx->hmac_len; in do_soft_hmac_verify()
|