Lines Matching refs:num_block
24 int num_block; member
45 u8 *key_exp, u8 *iv, int num_block, in lib_test_aes_one_block() argument
63 u8 *key_exp, u8 *iv, int num_block, in lib_test_aes_cbc_chain() argument
67 nocipher, ciphered, num_block); in lib_test_aes_cbc_chain()
69 ciphered, uncipher, num_block); in lib_test_aes_cbc_chain()
71 ut_asserteq_mem(nocipher, uncipher, num_block * AES_BLOCK_LENGTH); in lib_test_aes_cbc_chain()
76 ciphered, uncipher, num_block); in lib_test_aes_cbc_chain()
77 ut_assertf(memcmp(nocipher, uncipher, num_block * AES_BLOCK_LENGTH), in lib_test_aes_cbc_chain()
84 int key_exp_len, int type, int num_block) in _lib_test_aes_run() argument
94 nocipher = malloc(num_block * AES_BLOCK_LENGTH); in _lib_test_aes_run()
95 ciphered = malloc((num_block + 1) * AES_BLOCK_LENGTH); in _lib_test_aes_run()
96 uncipher = malloc((num_block + 1) * AES_BLOCK_LENGTH); in _lib_test_aes_run()
107 rand_buf(nocipher, num_block * AES_BLOCK_LENGTH); in _lib_test_aes_run()
108 memset(ciphered, 0, (num_block + 1) * AES_BLOCK_LENGTH); in _lib_test_aes_run()
109 memset(uncipher, 0, (num_block + 1) * AES_BLOCK_LENGTH); in _lib_test_aes_run()
118 num_block, nocipher, in _lib_test_aes_run()
123 num_block, nocipher, in _lib_test_aes_run()
149 int num_block = test->num_block; in lib_test_aes_run() local
152 type, num_block); in lib_test_aes_run()