Lines Matching refs:z
59 u32 y, z, n, sum = 0; in tea_encrypt() local
66 z = le32_to_cpu(in[1]); in tea_encrypt()
77 y += ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_encrypt()
78 z += ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_encrypt()
82 out[1] = cpu_to_le32(z); in tea_encrypt()
87 u32 y, z, n, sum; in tea_decrypt() local
94 z = le32_to_cpu(in[1]); in tea_decrypt()
106 z -= ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_decrypt()
107 y -= ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_decrypt()
112 out[1] = cpu_to_le32(z); in tea_decrypt()
132 u32 y, z, sum = 0; in xtea_encrypt() local
139 z = le32_to_cpu(in[1]); in xtea_encrypt()
142 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt()
144 z += ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 &3]); in xtea_encrypt()
148 out[1] = cpu_to_le32(z); in xtea_encrypt()
153 u32 y, z, sum; in xtea_decrypt() local
159 z = le32_to_cpu(in[1]); in xtea_decrypt()
164 z -= ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 & 3]); in xtea_decrypt()
166 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt()
170 out[1] = cpu_to_le32(z); in xtea_decrypt()
176 u32 y, z, sum = 0; in xeta_encrypt() local
183 z = le32_to_cpu(in[1]); in xeta_encrypt()
186 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt()
188 z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; in xeta_encrypt()
192 out[1] = cpu_to_le32(z); in xeta_encrypt()
197 u32 y, z, sum; in xeta_decrypt() local
203 z = le32_to_cpu(in[1]); in xeta_decrypt()
208 z -= (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 & 3]; in xeta_decrypt()
210 y -= (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum & 3]; in xeta_decrypt()
214 out[1] = cpu_to_le32(z); in xeta_decrypt()