Searched refs:Kr (Results 1 – 2 of 2) sorted by relevance
/crypto/ |
D | cast6_generic.c | 142 c->Kr[i][0] = key[0] & 0x1f; in __cast6_setkey() 143 c->Kr[i][1] = key[2] & 0x1f; in __cast6_setkey() 144 c->Kr[i][2] = key[4] & 0x1f; in __cast6_setkey() 145 c->Kr[i][3] = key[6] & 0x1f; in __cast6_setkey() 165 static inline void Q(u32 *block, u8 *Kr, u32 *Km) in Q() argument 168 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q() 169 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q() 170 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q() 171 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q() 175 static inline void QBAR(u32 *block, u8 *Kr, u32 *Km) in QBAR() argument [all …]
|
D | cast5_generic.c | 318 u8 *Kr; in __cast5_encrypt() local 321 Kr = c->Kr; in __cast5_encrypt() 337 t = l; l = r; r = t ^ F1(r, Km[0], Kr[0]); in __cast5_encrypt() 338 t = l; l = r; r = t ^ F2(r, Km[1], Kr[1]); in __cast5_encrypt() 339 t = l; l = r; r = t ^ F3(r, Km[2], Kr[2]); in __cast5_encrypt() 340 t = l; l = r; r = t ^ F1(r, Km[3], Kr[3]); in __cast5_encrypt() 341 t = l; l = r; r = t ^ F2(r, Km[4], Kr[4]); in __cast5_encrypt() 342 t = l; l = r; r = t ^ F3(r, Km[5], Kr[5]); in __cast5_encrypt() 343 t = l; l = r; r = t ^ F1(r, Km[6], Kr[6]); in __cast5_encrypt() 344 t = l; l = r; r = t ^ F2(r, Km[7], Kr[7]); in __cast5_encrypt() [all …]
|