| /mcuboot-latest/ext/tinycrypt/lib/source/ |
| D | ccm_mode.c | 39 int tc_ccm_config(TCCcmMode_t c, TCAesKeySched_t sched, uint8_t *nonce, in tc_ccm_config() argument 45 sched == (TCAesKeySched_t) 0 || in tc_ccm_config() 55 c->sched = sched; in tc_ccm_config() 65 unsigned int flag, TCAesKeySched_t sched) in ccm_cbc_mac() argument 81 (void) tc_aes_encrypt(T, T, sched); in ccm_cbc_mac() 94 unsigned int inlen, uint8_t *ctr, const TCAesKeySched_t sched) in ccm_ctr_mode() argument 106 sched == (TCAesKeySched_t) 0 || in ccm_ctr_mode() 123 if (!tc_aes_encrypt(buffer, nonce, sched)) { in ccm_ctr_mode() 169 (void) tc_aes_encrypt(tag, b, c->sched); in tc_ccm_generation_encryption() 171 ccm_cbc_mac(tag, associated_data, alen, 1, c->sched); in tc_ccm_generation_encryption() [all …]
|
| D | cbc_mode.c | 39 const TCAesKeySched_t sched) in tc_cbc_mode_encrypt() argument 48 sched == (TCAesKeySched_t) 0 || in tc_cbc_mode_encrypt() 66 (void)tc_aes_encrypt(buffer, buffer, sched); in tc_cbc_mode_encrypt() 79 const TCAesKeySched_t sched) in tc_cbc_mode_decrypt() argument 89 sched == (TCAesKeySched_t) 0 || in tc_cbc_mode_decrypt() 106 (void)tc_aes_decrypt(buffer, in, sched); in tc_cbc_mode_decrypt()
|
| D | cmac_mode.c | 97 int tc_cmac_setup(TCCmacState_t s, const uint8_t *key, TCAesKeySched_t sched) in tc_cmac_setup() argument 108 s->sched = sched; in tc_cmac_setup() 111 tc_aes128_set_encrypt_key(s->sched, key); in tc_cmac_setup() 115 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_setup() 200 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update() 208 tc_aes_encrypt(s->iv, s->iv, s->sched); in tc_cmac_update() 248 tc_aes_encrypt(tag, s->iv, s->sched); in tc_cmac_final()
|
| D | ctr_mode.c | 39 const TCAesKeySched_t sched) in tc_ctr_mode() argument 53 sched == (TCAesKeySched_t) 0 || in tc_ctr_mode() 70 if (tc_aes_encrypt(buffer, nonce, sched)) { in tc_ctr_mode()
|
| /mcuboot-latest/ext/tinycrypt/tests/ |
| D | test_ctr_mode.c | 80 struct tc_aes_key_sched_struct sched; in test_1_and_2() local 87 (void)tc_aes128_set_encrypt_key(&sched, key); in test_1_and_2() 91 sizeof(plaintext), ctr, &off, &sched) == 0) { in test_1_and_2() 109 sizeof(decrypted), ctr, &off, &sched) == 0) { in test_1_and_2()
|
| D | test_cmac_mode.c | 90 tc_aes_encrypt(L, zero, s.sched); in verify_gf_2_128_double() 261 struct tc_aes_key_sched_struct sched; in main() local 271 (void) tc_cmac_setup(&state, key, &sched); in main() 278 (void) tc_cmac_setup(&state, key, &sched); in main() 285 (void) tc_cmac_setup(&state, key, &sched); in main() 292 (void) tc_cmac_setup(&state, key, &sched); in main() 299 (void) tc_cmac_setup(&state, key, &sched); in main()
|
| D | test_ccm_mode.c | 82 struct tc_aes_key_sched_struct sched; in do_test() local 84 tc_aes128_set_encrypt_key(&sched, key); in do_test() 86 result = tc_ccm_config(&c, &sched, nonce, nlen, mlen); in do_test() 381 struct tc_aes_key_sched_struct sched; in test_vector_7() local 389 tc_aes128_set_encrypt_key(&sched, key); in test_vector_7() 390 if (tc_ccm_config(&c, &sched, nonce, sizeof(nonce), mlen) == 0) { in test_vector_7() 444 struct tc_aes_key_sched_struct sched; in test_vector_8() local 453 tc_aes128_set_encrypt_key(&sched, key); in test_vector_8() 454 if (tc_ccm_config(&c, &sched, nonce, sizeof(nonce), mlen) == 0) { in test_vector_8()
|
| /mcuboot-latest/ext/tinycrypt/lib/include/tinycrypt/ |
| D | cbc_mode.h | 112 const TCAesKeySched_t sched); 145 const TCAesKeySched_t sched);
|
| D | ccm_mode.h | 92 TCAesKeySched_t sched; /* AES key schedule */ member 111 int tc_ccm_config(TCCcmMode_t c, TCAesKeySched_t sched, uint8_t *nonce,
|
| D | cmac_mode.h | 126 TCAesKeySched_t sched; member 143 TCAesKeySched_t sched);
|
| D | ctr_mode.h | 104 const TCAesKeySched_t sched);
|