Home
last modified time | relevance | path

Searched refs:hkdf_alg (Results 1 – 25 of 25) sorted by relevance

/third_party/libcoap/src/oscore/
Doscore_crypto.c73 oscore_hkdf_extract(cose_hkdf_alg_t hkdf_alg, in oscore_hkdf_extract() argument
80 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg)) in oscore_hkdf_extract()
101 oscore_hkdf_expand(cose_hkdf_alg_t hkdf_alg, in oscore_hkdf_expand() argument
116 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg)) in oscore_hkdf_expand()
158 oscore_hkdf(cose_hkdf_alg_t hkdf_alg, in oscore_hkdf() argument
167 if (!oscore_hkdf_extract(hkdf_alg, salt, ikm, &hkdf_extract)) in oscore_hkdf()
170 oscore_hkdf_expand(hkdf_alg, hkdf_extract, info, info_len, okm, okm_len); in oscore_hkdf()
Doscore_cose.c167 cose_hkdf_alg_t hkdf_alg; member
179 cose_get_hmac_alg_for_hkdf(cose_hkdf_alg_t hkdf_alg, cose_hmac_alg_t *hmac_alg) { in cose_get_hmac_alg_for_hkdf() argument
184 if (hkdf_hmacs[idx].hkdf_alg == hkdf_alg) { in cose_get_hmac_alg_for_hkdf()
190 hkdf_alg); in cose_get_hmac_alg_for_hkdf()
Doscore_context.c329 if (!oscore_hkdf(osc_ctx->hkdf_alg, in oscore_build_key()
356 cose_get_hkdf_alg_name(osc_ctx->hkdf_alg, buffer, in oscore_log_context()
457 osc_ctx->hkdf_alg = o_osc_ctx->hkdf_alg; in oscore_duplicate_ctx()
532 osc_ctx->hkdf_alg = oscore_conf->hkdf_alg; in oscore_derive_ctx()
/third_party/libcoap/include/oscore/
Doscore_crypto.h94 int oscore_hkdf_extract(cose_hkdf_alg_t hkdf_alg,
112 int oscore_hkdf_expand(cose_hkdf_alg_t hkdf_alg,
133 int oscore_hkdf(cose_hkdf_alg_t hkdf_alg,
Doscore_cose.h179 int cose_get_hmac_alg_for_hkdf(cose_hkdf_alg_t hkdf_alg,
Doscore_context.h94 cose_hkdf_alg_t hkdf_alg; member
/third_party/mbedtls/include/psa/
Dcrypto_values.h1820 #define PSA_ALG_HKDF_GET_HASH(hkdf_alg) \ argument
1821 (PSA_ALG_CATEGORY_HASH | ((hkdf_alg) & PSA_ALG_HASH_MASK))
1969 #define PSA_ALG_TLS12_PRF_GET_HASH(hkdf_alg) \ argument
1970 (PSA_ALG_CATEGORY_HASH | ((hkdf_alg) & PSA_ALG_HASH_MASK))
2039 #define PSA_ALG_TLS12_PSK_TO_MS_GET_HASH(hkdf_alg) \ argument
2040 (PSA_ALG_CATEGORY_HASH | ((hkdf_alg) & PSA_ALG_HASH_MASK))
/third_party/libcoap/examples/interop/
Db_server.conf7 hkdf_alg,integer,-10
De_client.conf7 hkdf_alg,integer,-10
Da_client.conf7 hkdf_alg,integer,-10
Df_client.conf7 hkdf_alg,integer,-10
Dg_client.conf7 hkdf_alg,integer,-10
Dc_client.conf8 hkdf_alg,integer,-10
Dd_server.conf8 hkdf_alg,integer,-10
/third_party/libcoap/src/
Dcoap_notls.c343 coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg) { in coap_crypto_check_hkdf_alg() argument
344 (void)hkdf_alg; in coap_crypto_check_hkdf_alg()
Dcoap_oscore.c1809 CONFIG_ENTRY(hkdf_alg, COAP_ENC_INTEGER | COAP_ENC_TEXT, text_hkdf_alg),
1853 oscore_conf->hkdf_alg = COSE_HKDF_ALG_HKDF_SHA_256; in coap_parse_oscore_conf_mem()
1980 if (!coap_crypto_check_hkdf_alg(oscore_conf->hkdf_alg)) { in coap_oscore_init()
1982 oscore_conf->hkdf_alg); in coap_oscore_init()
Dcoap_tinydtls.c1561 coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg) { in coap_crypto_check_hkdf_alg() argument
1564 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg)) in coap_crypto_check_hkdf_alg()
Dcoap_mbedtls.c2773 coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg) { argument
2776 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg))
Dcoap_gnutls.c3062 coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg) { in coap_crypto_check_hkdf_alg() argument
3065 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg)) in coap_crypto_check_hkdf_alg()
Dcoap_openssl.c3763 coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg) { in coap_crypto_check_hkdf_alg() argument
3766 if (!cose_get_hmac_alg_for_hkdf(hkdf_alg, &hmac_alg)) in coap_crypto_check_hkdf_alg()
/third_party/libcoap/include/coap3/
Dcoap_crypto_internal.h85 int coap_crypto_check_hkdf_alg(cose_hkdf_alg_t hkdf_alg);
Dcoap_oscore_internal.h48 cose_hkdf_alg_t hkdf_alg; /**< Set to one of COSE_HKDF_ALG_* */ member
/third_party/libcoap/man/
Dcoap-oscore-conf.txt.in117 *hkdf_alg* ::
178 hkdf_alg,integer,-10
207 hkdf_alg,integer,-10
Dcoap_oscore.txt.in225 "hkdf_alg,integer,-10\n"
313 "hkdf_alg,integer,-10\n"
/third_party/mbedtls/tests/suites/
Dtest_suite_psa_crypto_metadata.function263 psa_algorithm_t hkdf_alg = PSA_ALG_HKDF(alg);
286 TEST_EQUAL(PSA_ALG_HKDF_GET_HASH(hkdf_alg), alg);