Lines Matching refs:cipher
2 #include "mbedtls/cipher.h"
13 /* Check the internal consistency of a cipher info structure, and
185 /* Ensure that there is at least 1 supported cipher, otherwise exit gracefully */
564 void dec_empty_buf(int cipher,
589 cipher_info = mbedtls_cipher_info_from_type(cipher);
789 data_t *iv, data_t *cipher,
829 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx, cipher->x, cipher->len, output, &outlen));
859 data_t *ad, data_t *cipher, data_t *tag,
884 * key, cipher and tag can't be empty. */
929 cipher_plus_tag_len = cipher->len + tag->len;
931 memcpy(cipher_plus_tag, cipher->x, cipher->len);
932 memcpy(cipher_plus_tag + cipher->len, tag->x, tag->len);
1028 TEST_ASSERT(outlen == cipher->len + tag->len);
1029 TEST_ASSERT(memcmp(encrypt_buf, cipher->x, cipher->len) == 0);
1030 TEST_ASSERT(memcmp(encrypt_buf + cipher->len,