Home
last modified time | relevance | path

Searched refs:prk (Results 1 – 8 of 8) sorted by relevance

/uoscore-uedhoc-3.7.0/src/edhoc/
Dciphertext.c89 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 …]
Dokm.c22 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()
Dsignature_or_mac_msg.c47 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/
Dciphertext.h34 const struct byte_array *ead, struct byte_array *prk,
59 struct byte_array *ead, struct byte_array *prk, struct byte_array *th,
Dokm.h31 enum err edhoc_kdf(enum hash_alg hash_alg, const struct byte_array *prk,
Dsignature_or_mac_msg.h42 const struct byte_array *prk, const struct byte_array *c_r,
/uoscore-uedhoc-3.7.0/src/common/
Dcrypto_wrapper.c584 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/
Dcrypto_wrapper.h76 enum err hkdf_expand(enum hash_alg alg, const struct byte_array *prk,