/uoscore-uedhoc-3.5.0/inc/edhoc/ |
D | ciphertext.h | 14 enum ciphertext { CIPHERTEXT2, CIPHERTEXT3, CIPHERTEXT4 }; enum 37 enum err ciphertext_gen(enum ciphertext ctxt, struct suite *suite, 42 uint8_t *th, uint32_t th_len, uint8_t *ciphertext, 68 enum err ciphertext_decrypt_split(enum ciphertext ctxt, struct suite *suite, 74 uint32_t th_len, uint8_t *ciphertext,
|
D | messages.h | 29 struct byte_array ciphertext; member
|
/uoscore-uedhoc-3.5.0/src/edhoc/ |
D | ciphertext.c | 62 enum ciphertext ctxt, enum aes_operation op, const uint8_t *in, in ciphertext_encrypt_decrypt() 94 static enum err key_gen(enum ciphertext ctxt, enum hash_alg edhoc_hash, in key_gen() 129 enum err ciphertext_decrypt_split(enum ciphertext ctxt, struct suite *suite, in ciphertext_decrypt_split() 135 uint32_t th_len, uint8_t *ciphertext, in ciphertext_decrypt_split() argument 175 ctxt, DECRYPT, ciphertext, ciphertext_len, key, key_len, iv, in ciphertext_decrypt_split() 177 plaintext_len, ciphertext - tag_len, tag_len)); in ciphertext_decrypt_split() 203 enum err ciphertext_gen(enum ciphertext ctxt, struct suite *suite, in ciphertext_gen() 208 uint8_t *th, uint32_t th_len, uint8_t *ciphertext, in ciphertext_gen() argument 298 ciphertext, *ciphertext_len, tag, in ciphertext_gen() 302 PRINT_ARRAY("ciphertext_2/3/4", ciphertext, *ciphertext_len); in ciphertext_gen()
|
D | initiator.c | 154 uint8_t ciphertext[CIPHERTEXT2_DEFAULT_SIZE]; in msg3_gen() local 155 uint32_t ciphertext_len = sizeof(ciphertext); in msg3_gen() 168 ciphertext, &ciphertext_len)); in msg3_gen() 212 sizeof(PRK_2e), th2, th2_len, ciphertext, ciphertext_len, in msg3_gen() 269 ciphertext_len = sizeof(ciphertext); in msg3_gen() 274 sizeof(PRK_3e2m), th3, th3_len, ciphertext, in msg3_gen() 283 TRY(encode_byte_string(ciphertext, ciphertext_len, rc->msg, in msg3_gen()
|
/uoscore-uedhoc-3.5.0/src/oscore/ |
D | oscore2coap.c | 254 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()
|
D | coap2oscore.c | 499 struct byte_array *ciphertext, in encrypt_wrapper() argument 549 TRY(oscore_cose_encrypt(plaintext, ciphertext, &nonce, &aad, in encrypt_wrapper() 640 BYTE_ARRAY_NEW(ciphertext, MAX_CIPHERTEXT_LEN, in coap2oscore() 651 TRY(encrypt_wrapper(&plaintext, &ciphertext, c, &o_coap_pkt, in coap2oscore() 657 u_options_cnt, &ciphertext, &oscore_option)); in coap2oscore()
|