Lines Matching refs:KEY
40 u32 KEY[4]; member
44 u32 KEY[4]; member
53 ctx->KEY[0] = le32_to_cpu(key[0]); in tea_setkey()
54 ctx->KEY[1] = le32_to_cpu(key[1]); in tea_setkey()
55 ctx->KEY[2] = le32_to_cpu(key[2]); in tea_setkey()
56 ctx->KEY[3] = le32_to_cpu(key[3]); in tea_setkey()
73 k0 = ctx->KEY[0]; in tea_encrypt()
74 k1 = ctx->KEY[1]; in tea_encrypt()
75 k2 = ctx->KEY[2]; in tea_encrypt()
76 k3 = ctx->KEY[3]; in tea_encrypt()
101 k0 = ctx->KEY[0]; in tea_decrypt()
102 k1 = ctx->KEY[1]; in tea_decrypt()
103 k2 = ctx->KEY[2]; in tea_decrypt()
104 k3 = ctx->KEY[3]; in tea_decrypt()
126 ctx->KEY[0] = le32_to_cpu(key[0]); in xtea_setkey()
127 ctx->KEY[1] = le32_to_cpu(key[1]); in xtea_setkey()
128 ctx->KEY[2] = le32_to_cpu(key[2]); in xtea_setkey()
129 ctx->KEY[3] = le32_to_cpu(key[3]); in xtea_setkey()
147 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt()
149 z += ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 &3]); in xtea_encrypt()
169 z -= ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 & 3]); in xtea_decrypt()
171 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt()
191 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt()
193 z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; in xeta_encrypt()
213 z -= (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 & 3]; in xeta_decrypt()
215 y -= (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum & 3]; in xeta_decrypt()