Home
last modified time | relevance | path

Searched refs:Kr (Results 1 – 2 of 2) sorted by relevance

/crypto/
Dcast6_generic.c134 c->Kr[i][0] = key[0] & 0x1f; in __cast6_setkey()
135 c->Kr[i][1] = key[2] & 0x1f; in __cast6_setkey()
136 c->Kr[i][2] = key[4] & 0x1f; in __cast6_setkey()
137 c->Kr[i][3] = key[6] & 0x1f; in __cast6_setkey()
157 static inline void Q(u32 *block, u8 *Kr, u32 *Km) in Q() argument
160 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q()
161 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q()
162 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q()
163 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q()
167 static inline void QBAR(u32 *block, u8 *Kr, u32 *Km) in QBAR() argument
[all …]
Dcast5_generic.c310 u8 *Kr; in __cast5_encrypt() local
313 Kr = c->Kr; in __cast5_encrypt()
329 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt()
330 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt()
331 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt()
332 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt()
333 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt()
334 t = l; l = r; r = t ^ F3(r, Km[5], Kr[5]); in __cast5_encrypt()
335 t = l; l = r; r = t ^ F1(r, Km[6], Kr[6]); in __cast5_encrypt()
336 t = l; l = r; r = t ^ F2(r, Km[7], Kr[7]); in __cast5_encrypt()
[all …]