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 */
560 void dec_empty_buf(int cipher,
585 cipher_info = mbedtls_cipher_info_from_type(cipher);
785 data_t *iv, data_t *cipher,
825 TEST_ASSERT(0 == mbedtls_cipher_update(&ctx, cipher->x, cipher->len, output, &outlen));
851 data_t *ad, data_t *cipher, data_t *tag,
876 * key, cipher and tag can't be empty. */
921 cipher_plus_tag_len = cipher->len + tag->len;
923 memcpy(cipher_plus_tag, cipher->x, cipher->len);
924 memcpy(cipher_plus_tag + cipher->len, tag->x, tag->len);
1020 TEST_ASSERT(outlen == cipher->len + tag->len);
1021 TEST_ASSERT(memcmp(encrypt_buf, cipher->x, cipher->len) == 0);
1022 TEST_ASSERT(memcmp(encrypt_buf + cipher->len,