Home
last modified time | relevance | path

Searched refs:rk_array_xor (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Dsm4_cmac.c16 static void rk_array_xor(int len, unsigned char*a1, unsigned char*a2, unsigned char*des) in rk_array_xor() function
39 rk_array_xor(SM4_BLOCK_SIZE, k1, Rb, k1); in rk_derive_mac_key()
49 rk_array_xor(SM4_BLOCK_SIZE, k2, Rb, k2); in rk_derive_mac_key()
74 rk_array_xor(16, &msg[i * SM4_BLOCK_SIZE], IVtemp, Blocktemp); in rk_sm4_genarate_cmac()
77 rk_array_xor(16, &msg[(block-1)*SM4_BLOCK_SIZE], IVtemp, Blocktemp); in rk_sm4_genarate_cmac()
78 rk_array_xor(16, Blocktemp, k1, Blocktemp); in rk_sm4_genarate_cmac()
87 rk_array_xor(16, Blocktemp, k2, Blocktemp); in rk_sm4_genarate_cmac()
96 rk_array_xor(SM4_BLOCK_SIZE, &msg[i * SM4_BLOCK_SIZE], IVtemp, Blocktemp); in rk_sm4_genarate_cmac()
111 rk_array_xor(SM4_BLOCK_SIZE, Blocktemp, k2, Blocktemp); in rk_sm4_genarate_cmac()
112 rk_array_xor(SM4_BLOCK_SIZE, Blocktemp, IVtemp, Blocktemp); in rk_sm4_genarate_cmac()
[all …]
H A Daes_cmac.c17 static void rk_array_xor(int len, const unsigned char*a1, const unsigned char*a2, unsigned char*des) in rk_array_xor() function
40 rk_array_xor(AES_BLOCK_SIZE, k1, Rb, k1); in rk_derive_mac_key()
50 rk_array_xor(AES_BLOCK_SIZE, k2, Rb, k2); in rk_derive_mac_key()
78 rk_array_xor(16, &msg[i * AES_BLOCK_SIZE], IVtemp, Blocktemp); in rk_aes_genarate_cmac()
81 rk_array_xor(16, &msg[(block-1)*AES_BLOCK_SIZE], IVtemp, Blocktemp); in rk_aes_genarate_cmac()
82 rk_array_xor(16, Blocktemp, k1, Blocktemp); in rk_aes_genarate_cmac()
91 rk_array_xor(16, Blocktemp, k2, Blocktemp); in rk_aes_genarate_cmac()
100 rk_array_xor(AES_BLOCK_SIZE, &msg[i * AES_BLOCK_SIZE], IVtemp, Blocktemp); in rk_aes_genarate_cmac()
115 rk_array_xor(AES_BLOCK_SIZE, Blocktemp, k2, Blocktemp); in rk_aes_genarate_cmac()
116 rk_array_xor(AES_BLOCK_SIZE, Blocktemp, IVtemp, Blocktemp); in rk_aes_genarate_cmac()
[all …]