Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 4 of 4) sorted by relevance

/crypto/
Dtea.c59 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
[all …]
Dstreebog_generic.c942 u64 sum; in streebog_add512() local
944 sum = left + le64_to_cpu(y->qword[i]) + carry; in streebog_add512()
945 if (sum != left) in streebog_add512()
946 carry = (sum < left); in streebog_add512()
947 r->qword[i] = cpu_to_le64(sum); in streebog_add512()
Decc.c272 u64 sum; in vli_add() local
274 sum = left[i] + right[i] + carry; in vli_add()
275 if (sum != left[i]) in vli_add()
276 carry = (sum < left[i]); in vli_add()
278 result[i] = sum; in vli_add()
292 u64 sum; in vli_uadd() local
294 sum = left[i] + carry; in vli_uadd()
295 if (sum != left[i]) in vli_uadd()
296 carry = (sum < left[i]); in vli_uadd()
300 result[i] = sum; in vli_uadd()
[all …]
DKconfig690 CRC32c algorithm implemented using vector polynomial multiply-sum
790 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on