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.c261 u64 sum; in vli_add() local
263 sum = left[i] + right[i] + carry; in vli_add()
264 if (sum != left[i]) in vli_add()
265 carry = (sum < left[i]); in vli_add()
267 result[i] = sum; in vli_add()
281 u64 sum; in vli_uadd() local
283 sum = left[i] + carry; in vli_uadd()
284 if (sum != left[i]) in vli_uadd()
285 carry = (sum < left[i]); in vli_uadd()
289 result[i] = sum; in vli_uadd()
[all …]
DKconfig590 CRC32c algorithm implemented using vector polynomial multiply-sum
667 multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on