Searched refs:Blocktemp (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | sm4_cmac.c | 57 unsigned char Blocktemp[SM4_BLOCK_SIZE]; in rk_sm4_genarate_cmac() local 62 memset(Blocktemp, 0x00, sizeof(Blocktemp)); in rk_sm4_genarate_cmac() 74 rk_array_xor(16, &msg[i * SM4_BLOCK_SIZE], IVtemp, Blocktemp); in rk_sm4_genarate_cmac() 75 rk_sm4_crypt_ecb(&ctx, Blocktemp, IVtemp); 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() 79 rk_sm4_crypt_ecb(&ctx, Blocktemp, macvalue); in rk_sm4_genarate_cmac() 86 Blocktemp[0] = 0x80;//padding the first bit with 1 in rk_sm4_genarate_cmac() 87 rk_array_xor(16, Blocktemp, k2, Blocktemp); in rk_sm4_genarate_cmac() 88 rk_sm4_crypt_ecb(&ctx, Blocktemp, macvalue); in rk_sm4_genarate_cmac() [all …]
|
| H A D | aes_cmac.c | 58 unsigned char Blocktemp[AES_BLOCK_SIZE]; in rk_aes_genarate_cmac() local 64 memset(Blocktemp, 0x00, sizeof(Blocktemp)); in rk_aes_genarate_cmac() 78 rk_array_xor(16, &msg[i * AES_BLOCK_SIZE], IVtemp, Blocktemp); in rk_aes_genarate_cmac() 79 rk_aes_encrypt(Blocktemp, IVtemp, &aes_key); 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() 83 rk_aes_encrypt(Blocktemp, macvalue, &aes_key); in rk_aes_genarate_cmac() 90 Blocktemp[0] = 0x80;//padding the first bit with 1 in rk_aes_genarate_cmac() 91 rk_array_xor(16, Blocktemp, k2, Blocktemp); in rk_aes_genarate_cmac() 92 rk_aes_encrypt(Blocktemp, macvalue, &aes_key); in rk_aes_genarate_cmac() [all …]
|