Home
last modified time | relevance | path

Searched refs:ciphertext (Results 1 – 6 of 6) sorted by relevance

/uoscore-uedhoc-latest/inc/edhoc/
Dciphertext.h14 enum ciphertext { CIPHERTEXT2, CIPHERTEXT3, CIPHERTEXT4 }; enum
30 enum err ciphertext_gen(enum ciphertext ctxt, struct suite *suite,
35 struct byte_array *th, struct byte_array *ciphertext,
57 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r,
60 struct byte_array *ciphertext, struct byte_array *plaintext);
Dmessages.h29 struct byte_array ciphertext; member
/uoscore-uedhoc-latest/src/edhoc/
Dciphertext.c62 enum ciphertext ctxt, enum aes_operation op, in ciphertext_encrypt_decrypt()
88 static enum err key_gen(enum ciphertext ctxt, enum hash_alg edhoc_hash, in key_gen()
120 enum ciphertext ctxt, struct suite *suite, struct byte_array *c_r, in ciphertext_decrypt_split()
123 struct byte_array *ciphertext, struct byte_array *plaintext) in ciphertext_decrypt_split() argument
128 key_len = ciphertext->len; in ciphertext_decrypt_split()
152 struct byte_array tag = BYTE_ARRAY_INIT(ciphertext->ptr, tag_len); in ciphertext_decrypt_split()
153 TRY(ciphertext_encrypt_decrypt(ctxt, DECRYPT, ciphertext, &key, &iv, in ciphertext_decrypt_split()
184 enum err ciphertext_gen(enum ciphertext ctxt, struct suite *suite, in ciphertext_gen()
189 struct byte_array *th, struct byte_array *ciphertext, in ciphertext_gen() argument
263 ciphertext->len = plaintext->len; in ciphertext_gen()
[all …]
Dinitiator.c139 BYTE_ARRAY_NEW(ciphertext, CIPHERTEXT2_SIZE, ciphertext_len); in msg2_process()
140 BYTE_ARRAY_NEW(plaintext, PLAINTEXT2_SIZE, ciphertext.len); in msg2_process()
144 TRY(msg2_parse(&rc->msg, &g_y, &ciphertext)); in msg2_process()
165 plaintext.len = ciphertext.len; in msg2_process()
170 &ciphertext, &plaintext)); in msg2_process()
211 BYTE_ARRAY_NEW(ciphertext, CIPHERTEXT3_SIZE, in msg3_only_gen()
224 &ciphertext, &plaintext)); in msg3_only_gen()
227 TRY(encode_bstr(&ciphertext, &rc->msg)); in msg3_only_gen()
/uoscore-uedhoc-latest/src/oscore/
Doscore2coap.c254 decrypt_wrapper(struct byte_array *ciphertext, struct byte_array *plaintext, in decrypt_wrapper() argument
301 TRY(oscore_cose_decrypt(ciphertext, plaintext, &nonce, &aad, in decrypt_wrapper()
352 struct byte_array *ciphertext = &oscore_packet.payload; in oscore2coap() local
356 uint32_t plaintext_bytes_len = ciphertext->len - AUTH_TAG_LEN; in oscore2coap()
390 TRY(decrypt_wrapper(ciphertext, &plaintext, c, &oscore_option, in oscore2coap()
438 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap()
456 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap()
462 TRY(decrypt_wrapper(ciphertext, &plaintext, c, in oscore2coap()
Dcoap2oscore.c507 struct byte_array *ciphertext, in encrypt_wrapper() argument
557 TRY(oscore_cose_encrypt(plaintext, ciphertext, &nonce, &aad, in encrypt_wrapper()
648 BYTE_ARRAY_NEW(ciphertext, MAX_CIPHERTEXT_LEN, in coap2oscore()
659 TRY(encrypt_wrapper(&plaintext, &ciphertext, c, &o_coap_pkt, in coap2oscore()
665 u_options_cnt, &ciphertext, &oscore_option)); in coap2oscore()