Home
last modified time | relevance | path

Searched refs:key_exp (Results 1 – 5 of 5) sorted by relevance

/u-boot/test/lib/
A Dtest_aes.c45 u8 *key_exp, u8 *iv, int num_block, in lib_test_aes_one_block() argument
54 key_exp[0]++; in lib_test_aes_one_block()
63 u8 *key_exp, u8 *iv, int num_block, in lib_test_aes_cbc_chain() argument
66 aes_cbc_encrypt_blocks(key_len, key_exp, iv, in lib_test_aes_cbc_chain()
68 aes_cbc_decrypt_blocks(key_len, key_exp, iv, in lib_test_aes_cbc_chain()
74 key_exp[0]++; in lib_test_aes_cbc_chain()
75 aes_cbc_decrypt_blocks(key_len, key_exp, iv, in lib_test_aes_cbc_chain()
86 u8 *key, *key_exp, *iv; in _lib_test_aes_run() local
92 key_exp = malloc(key_exp_len); in _lib_test_aes_run()
112 aes_expand_key(key, key_len, key_exp); in _lib_test_aes_run()
[all …]
/u-boot/lib/aes/
A Daes-decrypt.c18 unsigned char key_exp[AES256_EXPAND_KEY_LENGTH]; in image_aes_decrypt() local
28 memcpy(&key_exp[0], info->key, key_len); in image_aes_decrypt()
31 aes_expand_key((u8 *)info->key, key_len, key_exp); in image_aes_decrypt()
36 aes_cbc_decrypt_blocks(key_len, key_exp, (u8 *)info->iv, in image_aes_decrypt()
/u-boot/cmd/
A Daes.c42 u8 key_exp[AES256_EXPAND_KEY_LENGTH]; in do_aes() local
70 aes_expand_key(key_ptr, key_len, key_exp); in do_aes()
76 aes_cbc_encrypt_blocks(key_len, key_exp, iv_ptr, src_ptr, in do_aes()
79 aes_cbc_decrypt_blocks(key_len, key_exp, iv_ptr, src_ptr, in do_aes()
/u-boot/include/
A Duboot_aes.h94 void aes_cbc_encrypt_blocks(u32 key_size, u8 *key_exp, u8 *iv, u8 *src, u8 *dst,
107 void aes_cbc_decrypt_blocks(u32 key_size, u8 *key_exp, u8 *iv, u8 *src, u8 *dst,
/u-boot/lib/
A Daes.c635 void aes_cbc_encrypt_blocks(u32 key_len, u8 *key_exp, u8 *iv, u8 *src, u8 *dst, in aes_cbc_encrypt_blocks() argument
651 aes_encrypt(key_len, tmp_data, key_exp, dst); in aes_cbc_encrypt_blocks()
661 void aes_cbc_decrypt_blocks(u32 key_len, u8 *key_exp, u8 *iv, u8 *src, u8 *dst, in aes_cbc_decrypt_blocks() argument
677 aes_decrypt(key_len, src, key_exp, tmp_data); in aes_cbc_decrypt_blocks()

Completed in 6 milliseconds