Searched refs:hmac (Results 1 – 10 of 10) sorted by relevance
/mbedtls-latest/library/ |
D | psa_crypto_mac.c | 25 mbedtls_psa_hmac_operation_t *hmac) in psa_hmac_abort_internal() argument 27 mbedtls_platform_zeroize(hmac->opad, sizeof(hmac->opad)); in psa_hmac_abort_internal() 28 return psa_hash_abort(&hmac->hash_ctx); in psa_hmac_abort_internal() 32 mbedtls_psa_hmac_operation_t *hmac, in psa_hmac_setup_internal() argument 43 hmac->alg = hash_alg; in psa_hmac_setup_internal() 54 if (block_size > sizeof(hmac->opad)) { in psa_hmac_setup_internal() 86 hmac->opad[i] = ipad[i] ^ 0x36 ^ 0x5C; in psa_hmac_setup_internal() 88 memset(hmac->opad + key_length, 0x5C, block_size - key_length); in psa_hmac_setup_internal() 90 status = psa_hash_setup(&hmac->hash_ctx, hash_alg); in psa_hmac_setup_internal() 95 status = psa_hash_update(&hmac->hash_ctx, ipad, block_size); in psa_hmac_setup_internal() [all …]
|
D | psa_crypto.c | 5551 status = psa_mac_abort(&operation->ctx.hkdf.hmac); 5687 status = psa_key_derivation_start_hmac(&hkdf->hmac, 5696 status = psa_mac_update(&hkdf->hmac, 5703 status = psa_mac_update(&hkdf->hmac, 5709 status = psa_mac_update(&hkdf->hmac, 5714 status = psa_mac_sign_finish(&hkdf->hmac, 5735 psa_mac_operation_t hmac = PSA_MAC_OPERATION_INIT; local 5769 status = psa_key_derivation_start_hmac(&hmac, 5782 status = psa_mac_update(&hmac, 5788 status = psa_mac_update(&hmac, [all …]
|
D | md.c | 418 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac) in mbedtls_md_setup() argument 434 if (hmac != 0) { in mbedtls_md_setup() 497 if (hmac != 0) { in mbedtls_md_setup()
|
/mbedtls-latest/tests/suites/ |
D | test_suite_psa_crypto_hash.data | 614 # import hmac; hmac.new(bytes([0xaa]*32), b'abc', 'SHA3-224').hexdigest() 618 hmac:PSA_ALG_SHA3_224:"abc":"bf0905154ad610b6a3d6d0b9a1c692494e987337d956624a066d7a1f" 622 hmac:PSA_ALG_SHA3_256:"abc":"a986419a162b6d4731a8e96e44a2c6e784d50137907b457c9fb77c62705dc4d9" 626 hmac:PSA_ALG_SHA3_384:"abc":"87b864ee25f8bfebd516eddd7cdd400d3c368a09e4b1fabaee5636da8a9c876c3f802c… 630 hmac:PSA_ALG_SHA3_512:"abc":"2cef45b6950e41a70bc85cb431b2161d47c9e2932187fa15d80e3b7af1da38aa8fe823… 634 hmac:PSA_ALG_SHA_1:"abc":"0b3a7f96afea3e14a0835f7c9468a24649f85596" 638 hmac:PSA_ALG_SHA_224:"abc":"249c405cef8bcd3ceeafdb9a933179739fb9b1d7f174df4667ec82f3" 642 hmac:PSA_ALG_SHA_256:"abc":"b89a1b878289c739595104da55b6f7a8afec3e0757fc166080dc267c09c46841" 646 hmac:PSA_ALG_SHA_384:"abc":"25a8b55c884bc38286305f76332631726498f5586280b88bc6179cd00c6878fb7d1bb3e… 650 hmac:PSA_ALG_SHA_512:"abc":"d6e5eebb5cf27f5b686fefc416ee8c431bb10770216aa3c6ba13897ef3fc040b98abc53… [all …]
|
D | test_suite_psa_crypto_hash.function | 39 void hmac(int alg_arg, char *input, data_t *expected_mac)
|
/mbedtls-latest/include/psa/ |
D | crypto_builtin_key_derivation.h | 42 struct psa_mac_operation_s MBEDTLS_PRIVATE(hmac);
|
D | crypto_builtin_composites.h | 62 mbedtls_psa_hmac_operation_t MBEDTLS_PRIVATE(hmac);
|
/mbedtls-latest/include/mbedtls/ |
D | md.h | 197 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac);
|
/mbedtls-latest/docs/architecture/psa-migration/ |
D | md-cipher-dispatch.md | 408 * `mbedtls_md_setup` — but `hmac` must be 0 if `MBEDTLS_MD_C` is disabled.
|
/mbedtls-latest/docs/ |
D | psa-transition.md | 509 2. Call `mbedtls_md_setup` to select the hash algorithm, with `hmac=0`. Then call `mbedtls_md_start… 552 2. Call `mbedtls_md_setup` to select the hash algorithm, with `hmac=1`. Then call `mbedtls_md_hmac_…
|