Lines Matching refs:plaintext
200 struct byte_array *plaintext) in plaintext_setup() argument
202 uint8_t *temp_plaintext_ptr = plaintext->ptr; in plaintext_setup()
221 uint32_t dest_size = (plaintext->len - (uint32_t)(temp_plaintext_ptr + in plaintext_setup()
222 1 - plaintext->ptr)); in plaintext_setup()
232 dest_size = (plaintext->len - (uint32_t)(temp_plaintext_ptr + in plaintext_setup()
233 1 - plaintext->ptr)); in plaintext_setup()
237 PRINT_ARRAY("Plain text", plaintext->ptr, plaintext->len); in plaintext_setup()
498 static enum err encrypt_wrapper(struct byte_array *plaintext, in encrypt_wrapper() argument
549 TRY(oscore_cose_encrypt(plaintext, ciphertext, &nonce, &aad, in encrypt_wrapper()
634 BYTE_ARRAY_NEW(plaintext, MAX_PLAINTEXT_LEN, plaintext_len); in coap2oscore()
637 TRY(plaintext_setup(&o_coap_pkt, e_options, e_options_cnt, &plaintext)); in coap2oscore()
641 plaintext.len + AUTH_TAG_LEN); in coap2oscore()
651 TRY(encrypt_wrapper(&plaintext, &ciphertext, c, &o_coap_pkt, in coap2oscore()