/uoscore-uedhoc-3.7.0/src/edhoc/ |
D | ciphertext.c | 89 struct byte_array *prk, struct byte_array *th, in key_gen() argument 94 TRY(edhoc_kdf(edhoc_hash, prk, KEYSTREAM_2, th, key)); in key_gen() 99 TRY(edhoc_kdf(edhoc_hash, prk, K_3, th, key)); in key_gen() 103 TRY(edhoc_kdf(edhoc_hash, prk, IV_3, th, iv)); in key_gen() 108 PRINT_ARRAY("PRK_4e3m", prk->ptr, prk->len); in key_gen() 110 TRY(edhoc_kdf(edhoc_hash, prk, K_4, th, key)); in key_gen() 112 TRY(edhoc_kdf(edhoc_hash, prk, IV_4, th, iv)); in key_gen() 122 struct byte_array *ead, struct byte_array *prk, struct byte_array *th, in ciphertext_decrypt_split() argument 136 TRY(key_gen(ctxt, suite->edhoc_hash, prk, th, &key, &iv)); in ciphertext_decrypt_split() 188 const struct byte_array *ead, struct byte_array *prk, in ciphertext_gen() argument [all …]
|
D | okm.c | 22 enum err edhoc_kdf(enum hash_alg hash_alg, const struct byte_array *prk, in edhoc_kdf() argument 34 return hkdf_expand(hash_alg, prk, &info, okm); in edhoc_kdf()
|
D | signature_or_mac_msg.c | 47 static enum err mac(const struct byte_array *prk, const struct byte_array *c_r, in mac() argument 92 TRY(edhoc_kdf(suite->edhoc_hash, prk, mac_label, &context_mac, mac)); in mac() 143 const struct byte_array *prk, const struct byte_array *c_r, in signature_or_mac() argument 150 TRY(mac(prk, c_r, th, id_cred, cred, ead, mac_label, static_dh, in signature_or_mac() 183 TRY(mac(prk, c_r, th, id_cred, cred, ead, mac_label, static_dh, in signature_or_mac()
|
/uoscore-uedhoc-3.7.0/inc/edhoc/ |
D | ciphertext.h | 34 const struct byte_array *ead, struct byte_array *prk, 59 struct byte_array *ead, struct byte_array *prk, struct byte_array *th,
|
D | okm.h | 31 enum err edhoc_kdf(enum hash_alg hash_alg, const struct byte_array *prk,
|
D | signature_or_mac_msg.h | 42 const struct byte_array *prk, const struct byte_array *c_r,
|
/uoscore-uedhoc-3.7.0/src/common/ |
D | crypto_wrapper.c | 584 enum err WEAK hkdf_expand(enum hash_alg alg, const struct byte_array *prk, in hkdf_expand() argument 602 TRY_EXPECT(tc_hmac_set_key(&h, prk->ptr, prk->len), 1); in hkdf_expand() 630 PRINT_ARRAY("PRK:", prk->ptr, prk->len); in hkdf_expand() 631 TRY_EXPECT_PSA(psa_import_key(&attr, prk->ptr, prk->len, &key_id), in hkdf_expand() 671 BYTE_ARRAY_NEW(prk, HASH_SIZE, HASH_SIZE); in hkdf_sha_256() 672 TRY(hkdf_extract(SHA_256, master_salt, master_secret, prk.ptr)); in hkdf_sha_256() 673 TRY(hkdf_expand(SHA_256, &prk, info, out)); in hkdf_sha_256()
|
/uoscore-uedhoc-3.7.0/inc/common/ |
D | crypto_wrapper.h | 76 enum err hkdf_expand(enum hash_alg alg, const struct byte_array *prk,
|