Lines Matching refs:key
6 * The context must have been set up with the key. */
82 unsigned char key[32];
88 memset(key, 0x2A, sizeof(key));
89 TEST_ASSERT((unsigned) key_size <= 8 * sizeof(key));
91 ret = mbedtls_ccm_setkey(&ctx, cipher_id, key, key_size);
104 unsigned char key[16];
116 memset(key, 0, sizeof(key));
123 key, 8 * sizeof(key)) == 0);
149 unsigned char key[16];
160 memset(key, 0, sizeof(key));
168 key, 8 * sizeof(key)) == 0);
189 void mbedtls_ccm_encrypt_and_tag(int cipher_id, data_t *key,
211 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
247 void mbedtls_ccm_star_no_tag(int cipher_id, int mode, data_t *key,
256 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
274 void mbedtls_ccm_auth_decrypt(int cipher_id, data_t *key,
294 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
339 data_t *key, data_t *msg,
384 key->x, key->len * 8), 0);
426 data_t *key, data_t *msg,
464 TEST_ASSERT(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8) == 0);
506 data_t *key, data_t *msg, data_t *iv,
518 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
546 data_t *key, data_t *iv, data_t *add,
554 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
576 data_t *key, data_t *iv,
583 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
599 data_t *key, data_t *iv,
606 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
621 data_t *key, data_t *msg, data_t *iv,
630 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
651 data_t *key, data_t *iv, data_t *add)
658 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
679 data_t *key, data_t *iv,
686 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
705 data_t *key, data_t *iv,
716 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
734 data_t *key, data_t *msg, data_t *iv,
743 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
764 data_t *key, data_t *msg, data_t *iv,
773 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
800 data_t *key, data_t *msg, data_t *iv,
809 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
833 data_t *key, data_t *msg, data_t *iv,
846 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);
869 data_t *key, data_t *iv)
876 TEST_EQUAL(mbedtls_ccm_setkey(&ctx, cipher_id, key->x, key->len * 8), 0);