Home
last modified time | relevance | path

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

/crypto/
Dcast6_generic.c139 c->Km[i][0] = key[7]; in __cast6_setkey()
140 c->Km[i][1] = key[5]; in __cast6_setkey()
141 c->Km[i][2] = key[3]; in __cast6_setkey()
142 c->Km[i][3] = key[1]; 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.c309 u32 *Km; in __cast5_encrypt() local
312 Km = c->Km; 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 …]