Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 7 of 7) sorted by relevance

/uoscore-uedhoc-3.7.0/src/oscore/
Doscore_cose.c69 BYTE_ARRAY_NEW(aad, MAX_AAD_LEN, aad_len); in oscore_cose_decrypt()
70 TRY(create_enc_structure(recipient_aad, &aad)); in oscore_cose_decrypt()
71 PRINT_ARRAY("AAD encoded", aad.ptr, aad.len); in oscore_cose_decrypt()
77 TRY(aead(DECRYPT, in_ciphertext, key, nonce, &aad, out_plaintext, in oscore_cose_decrypt()
93 BYTE_ARRAY_NEW(aad, MAX_AAD_LEN, aad_len); in oscore_cose_encrypt()
95 TRY(create_enc_structure(sender_aad, &aad)); in oscore_cose_encrypt()
96 PRINT_ARRAY("aad enc structure", aad.ptr, aad.len); in oscore_cose_encrypt()
102 TRY(aead(ENCRYPT, in_plaintext, key, nonce, &aad, out_ciphertext, in oscore_cose_encrypt()
Doscore2coap.c296 struct byte_array aad = BYTE_ARRAY_INIT(aad_buf, sizeof(aad_buf)); in decrypt_wrapper() local
298 &aad)); in decrypt_wrapper()
301 TRY(oscore_cose_decrypt(ciphertext, plaintext, &nonce, &aad, in decrypt_wrapper()
Dcoap2oscore.c547 BYTE_ARRAY_NEW(aad, MAX_AAD_LEN, MAX_AAD_LEN); in encrypt_wrapper()
554 &aad)); in encrypt_wrapper()
557 TRY(oscore_cose_encrypt(plaintext, ciphertext, &nonce, &aad, in encrypt_wrapper()
/uoscore-uedhoc-3.7.0/src/edhoc/
Dciphertext.c64 struct byte_array *nonce, const struct byte_array *aad, in ciphertext_encrypt_decrypt() argument
71 TRY(aead(op, in, key, nonce, aad, out, tag)); in ciphertext_encrypt_decrypt()
252 BYTE_ARRAY_NEW(aad, AAD_SIZE, AAD_SIZE); in ciphertext_gen()
257 TRY(associated_data_encode(th, &aad)); in ciphertext_gen()
258 PRINT_ARRAY("aad_data", aad.ptr, aad.len); in ciphertext_gen()
266 &aad, ciphertext, &tag)); in ciphertext_gen()
/uoscore-uedhoc-3.7.0/src/common/
Dcrypto_wrapper.c248 const uint8_t *aad, const uint16_t aad_len, in aead_mock_args_match_predefined() argument
257 array_equals(&predefined->aad, in aead_mock_args_match_predefined()
258 &(struct byte_array){ .ptr = (void *)aad, in aead_mock_args_match_predefined()
267 const struct byte_array *aad, struct byte_array *out, in aead() argument
276 nonce->len, aad->ptr, aad->len, tag->ptr, in aead()
295 aad->ptr, aad->len, in aead()
301 out->ptr, (out->len + tag->len), aad->ptr, in aead()
302 aad->len, in->ptr, in->len, &c), in aead()
329 aad->ptr, aad->len, in->ptr, in->len, in aead()
336 aad->ptr, aad->len, in->ptr, in->len, in aead()
/uoscore-uedhoc-3.7.0/inc/common/
Dcrypto_wrapper.h39 const struct byte_array *aad, struct byte_array *out,
152 struct byte_array aad; member
/uoscore-uedhoc-3.7.0/inc/oscore/
Doscore_cose.h29 struct byte_array *nonce, struct byte_array *aad,