Searched refs:ciphertext (Results 1 – 5 of 5) sorted by relevance
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_aes.c | 127 uint8_t ciphertext[NUM_OF_NIST_KEYS]; in test_2() local 132 if (tc_aes_encrypt(ciphertext, nist_input, &s) == 0) { in test_2() 139 result = check_result(2, expected, sizeof(expected), ciphertext, in test_2() 140 sizeof(ciphertext)); in test_2() 151 uint8_t ciphertext[NUM_OF_NIST_KEYS]; in var_text_test() local 155 (void)tc_aes_encrypt(ciphertext, in, s); in var_text_test() 156 result = check_result(r, out, NUM_OF_NIST_KEYS, ciphertext, in var_text_test() 157 sizeof(ciphertext)); in var_text_test() 159 if (tc_aes_decrypt(decrypted, ciphertext, s) == 0) { in var_text_test() 1106 uint8_t ciphertext[NUM_OF_NIST_KEYS]; in var_key_test() local [all …]
|
D | test_ccm_mode.c | 79 uint8_t ciphertext[TC_CCM_MAX_CT_SIZE]; in do_test() local 94 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in do_test() 104 if (memcmp(expected, ciphertext, elen) != 0) { in do_test() 108 show_str("\t\tComputed", ciphertext, elen); in do_test() 115 hlen, ciphertext, dlen+mlen, &c); in do_test() 383 uint8_t ciphertext[TC_CCM_MAX_CT_SIZE]; in test_vector_7() local 397 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in test_vector_7() 407 0, ciphertext, sizeof(data)+mlen, &c); in test_vector_7() 447 uint8_t ciphertext[TC_CCM_MAX_CT_SIZE]; in test_vector_8() local 461 result = tc_ccm_generation_encryption(ciphertext, TC_CCM_MAX_CT_SIZE, hdr, in test_vector_8() [all …]
|
D | test_cbc_mode.c | 91 const uint8_t ciphertext[80] = { variable 127 result = check_result(1, ciphertext, sizeof(encrypted), encrypted, in test_1_and_2()
|
D | test_ctr_mode.c | 71 const uint8_t ciphertext[80] = { in test_1_and_2() local 102 result = check_result(1, ciphertext, sizeof(out), out, sizeof(out)); in test_1_and_2()
|
/mcuboot-latest/ext/tinycrypt/documentation/ |
D | tinycrypt.rst | 177 * TinyCrypt CBC decryption assumes that the iv and the ciphertext are
|