Lines Matching refs:KEY
35 u32 KEY[4]; member
39 u32 KEY[4]; member
47 ctx->KEY[0] = get_unaligned_le32(&in_key[0]); in tea_setkey()
48 ctx->KEY[1] = get_unaligned_le32(&in_key[4]); in tea_setkey()
49 ctx->KEY[2] = get_unaligned_le32(&in_key[8]); in tea_setkey()
50 ctx->KEY[3] = get_unaligned_le32(&in_key[12]); in tea_setkey()
65 k0 = ctx->KEY[0]; in tea_encrypt()
66 k1 = ctx->KEY[1]; in tea_encrypt()
67 k2 = ctx->KEY[2]; in tea_encrypt()
68 k3 = ctx->KEY[3]; in tea_encrypt()
91 k0 = ctx->KEY[0]; in tea_decrypt()
92 k1 = ctx->KEY[1]; in tea_decrypt()
93 k2 = ctx->KEY[2]; in tea_decrypt()
94 k3 = ctx->KEY[3]; in tea_decrypt()
115 ctx->KEY[0] = get_unaligned_le32(&in_key[0]); in xtea_setkey()
116 ctx->KEY[1] = get_unaligned_le32(&in_key[4]); in xtea_setkey()
117 ctx->KEY[2] = get_unaligned_le32(&in_key[8]); in xtea_setkey()
118 ctx->KEY[3] = get_unaligned_le32(&in_key[12]); in xtea_setkey()
134 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt()
136 z += ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 &3]); in xtea_encrypt()
154 z -= ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 & 3]); in xtea_decrypt()
156 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt()
174 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt()
176 z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; in xeta_encrypt()
194 z -= (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 & 3]; in xeta_decrypt()
196 y -= (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum & 3]; in xeta_decrypt()