Searched refs:hmac (Results 1 – 11 of 11) sorted by relevance
| /lib/mbedtls/external/mbedtls/library/ |
| A 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() 104 mbedtls_psa_hmac_operation_t *hmac, in psa_hmac_update_internal() argument 112 mbedtls_psa_hmac_operation_t *hmac, in psa_hmac_finish_internal() argument 117 psa_algorithm_t hash_alg = hmac->alg; in psa_hmac_finish_internal() 133 status = psa_hash_update(&hmac->hash_ctx, hmac->opad, block_size); in psa_hmac_finish_internal() [all …]
|
| A 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()
|
| A D | psa_crypto.c | 5638 status = psa_mac_update(&hkdf->hmac, in psa_key_derivation_hkdf_read() 5645 status = psa_mac_update(&hkdf->hmac, in psa_key_derivation_hkdf_read() 5651 status = psa_mac_update(&hkdf->hmac, in psa_key_derivation_hkdf_read() 5656 status = psa_mac_sign_finish(&hkdf->hmac, in psa_key_derivation_hkdf_read() 5711 status = psa_key_derivation_start_hmac(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() 5724 status = psa_mac_update(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() 5730 status = psa_mac_update(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() 5744 status = psa_mac_sign_finish(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() 5755 status = psa_key_derivation_start_hmac(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() 5774 status = psa_mac_sign_finish(&hmac, in psa_key_derivation_tls12_prf_generate_next_block() [all …]
|
| /lib/mbedtls/external/mbedtls/tests/suites/ |
| A 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" 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… 654 hmac:PSA_ALG_RIPEMD160:"abc":"114a5cf4637f57c044472e1a0b87cce9137190b2" 658 hmac:PSA_ALG_MD5:"abc":"39677b12b80118927387aa4a65d16a5e" 662 hmac:PSA_ALG_SHA_256:"":"63210aee265762634fa3db8c1aa920dcd07d31ec297309580394a21412f83372" [all …]
|
| A D | test_suite_psa_crypto_hash.function | 39 void hmac(int alg_arg, char *input, data_t *expected_mac)
|
| /lib/mbedtls/external/mbedtls/include/psa/ |
| A D | crypto_builtin_key_derivation.h | 42 struct psa_mac_operation_s MBEDTLS_PRIVATE(hmac);
|
| A D | crypto_builtin_composites.h | 62 mbedtls_psa_hmac_operation_t MBEDTLS_PRIVATE(hmac);
|
| /lib/mbedtls/external/mbedtls/include/mbedtls/ |
| A D | md.h | 197 int mbedtls_md_setup(mbedtls_md_context_t *ctx, const mbedtls_md_info_t *md_info, int hmac);
|
| /lib/lwip/lwip/src/apps/snmp/ |
| A D | snmp_msg.c | 1039 u8_t hmac[LWIP_MAX(SNMP_V3_SHA_LEN, SNMP_V3_MD5_LEN)]; in snmp_parse_inbound_frame() local 1059 IF_PARSE_EXEC(snmpv3_auth(&auth_stream, request->inbound_pbuf->tot_len, key, auth, hmac)); in snmp_parse_inbound_frame() 1061 if (memcmp(request->msg_authentication_parameters, hmac, SNMP_V3_MAX_AUTH_PARAM_LENGTH)) { in snmp_parse_inbound_frame() 1836 u8_t hmac[20]; in snmp_complete_outbound_frame() local 1841 …_EXEC(snmpv3_auth(&request->outbound_pbuf_stream, frame_size + outbound_padding, key, algo, hmac)); in snmp_complete_outbound_frame() 1843 MEMCPY(request->msg_authentication_parameters, hmac, SNMP_V3_MAX_AUTH_PARAM_LENGTH); in snmp_complete_outbound_frame()
|
| /lib/mbedtls/external/mbedtls/docs/architecture/psa-migration/ |
| A D | md-cipher-dispatch.md | 408 * `mbedtls_md_setup` — but `hmac` must be 0 if `MBEDTLS_MD_C` is disabled.
|
| /lib/mbedtls/external/mbedtls/docs/ |
| A 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_…
|
Completed in 48 milliseconds