Searched refs:tweak1 (Results 1 – 3 of 3) sorted by relevance
| /OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/ |
| H A D | aes_xts.c | 82 union { u64 u[2]; u8 c[16]; } tweak1; in aes_xts128_encrypt() local 89 tweak1.u[0] = (tweak.u[0] << 1) ^ res; in aes_xts128_encrypt() 90 tweak1.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt() 98 tweak1.c[i] = (u8)c; in aes_xts128_encrypt() 101 tweak1.c[0] ^= (u8)(0x87 & (0-c)); in aes_xts128_encrypt() 105 scratch.u[0] ^= tweak1.u[0]; in aes_xts128_encrypt() 106 scratch.u[1] ^= tweak1.u[1]; in aes_xts128_encrypt() 109 scratch.u[0] ^= tweak1.u[0]; in aes_xts128_encrypt() 110 scratch.u[1] ^= tweak1.u[1]; in aes_xts128_encrypt()
|
| H A D | sm4_xts.c | 81 union { u64 u[2]; u8 c[16]; } tweak1; in aes_xts128_encrypt() local 88 tweak1.u[0] = (tweak.u[0] << 1) ^ res; in aes_xts128_encrypt() 89 tweak1.u[1] = (tweak.u[1] << 1) | carry; in aes_xts128_encrypt() 97 tweak1.c[i] = (u8)c; in aes_xts128_encrypt() 100 tweak1.c[0] ^= (u8)(0x87 & (0-c)); in aes_xts128_encrypt() 104 scratch.u[0] ^= tweak1.u[0]; in aes_xts128_encrypt() 105 scratch.u[1] ^= tweak1.u[1]; in aes_xts128_encrypt() 108 scratch.u[0] ^= tweak1.u[0]; in aes_xts128_encrypt() 109 scratch.u[1] ^= tweak1.u[1]; in aes_xts128_encrypt()
|
| /OK3568_Linux_fs/kernel/drivers/crypto/vmx/ |
| H A D | aesp8-ppc.pl | 1969 my ($tweak,$seven,$eighty7,$tmp,$tweak1) = map("v$_",(8..12)); 2350 vaddubm $tweak1,$tweak,$tweak 2353 vxor $tweak1,$tweak1,$tmp 2359 vxor $inout,$inout,$tweak1 # :-) 2377 vxor $rndkey0,$rndkey0,$tweak1
|