• Home
  • Raw
  • Download

Lines Matching refs:sum

59 	u32 y, z, n, sum = 0;  in tea_encrypt()  local
76 sum += TEA_DELTA; 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()
87 u32 y, z, n, sum; in tea_decrypt() local
101 sum = TEA_DELTA << 5; 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()
108 sum -= TEA_DELTA; in tea_decrypt()
132 u32 y, z, sum = 0; in xtea_encrypt() local
141 while (sum != limit) { in xtea_encrypt()
142 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt()
143 sum += XTEA_DELTA; in xtea_encrypt()
144 z += ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 &3]); in xtea_encrypt()
153 u32 y, z, sum; in xtea_decrypt() local
161 sum = XTEA_DELTA * XTEA_ROUNDS; in xtea_decrypt()
163 while (sum) { in xtea_decrypt()
164 z -= ((y << 4 ^ y >> 5) + y) ^ (sum + ctx->KEY[sum>>11 & 3]); in xtea_decrypt()
165 sum -= XTEA_DELTA; in xtea_decrypt()
166 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt()
176 u32 y, z, sum = 0; in xeta_encrypt() local
185 while (sum != limit) { in xeta_encrypt()
186 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt()
187 sum += XTEA_DELTA; in xeta_encrypt()
188 z += (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 &3]; in xeta_encrypt()
197 u32 y, z, sum; in xeta_decrypt() local
205 sum = XTEA_DELTA * XTEA_ROUNDS; in xeta_decrypt()
207 while (sum) { in xeta_decrypt()
208 z -= (y << 4 ^ y >> 5) + (y ^ sum) + ctx->KEY[sum>>11 & 3]; in xeta_decrypt()
209 sum -= XTEA_DELTA; in xeta_decrypt()
210 y -= (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum & 3]; in xeta_decrypt()