Lines Matching refs:ciphertext
62 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()
266 &aad, ciphertext, &tag)); in ciphertext_gen()
267 ciphertext->len += tag.len; in ciphertext_gen()
269 PRINT_ARRAY("ciphertext_2/3/4", ciphertext->ptr, ciphertext->len); in ciphertext_gen()