Home
last modified time | relevance | path

Searched refs:r (Results 1 – 10 of 10) sorted by relevance

/crypto/
Dcast5_generic.c303 #define F1(D, m, r) ((I = ((m) + (D))), (I = rol32(I, (r))), \ argument
305 #define F2(D, m, r) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \ argument
307 #define F3(D, m, r) ((I = ((m) - (D))), (I = rol32(I, (r))), \ argument
315 u32 l, r, t; in __cast5_encrypt() local
327 r = be32_to_cpu(src[1]); 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()
[all …]
Dgf128mul.c125 static void gf128mul_x_lle(be128 *r, const be128 *x) in gf128mul_x_lle() argument
131 r->b = cpu_to_be64((b >> 1) | (a << 63)); in gf128mul_x_lle()
132 r->a = cpu_to_be64((a >> 1) ^ (_tt << 48)); in gf128mul_x_lle()
135 static void gf128mul_x_bbe(be128 *r, const be128 *x) in gf128mul_x_bbe() argument
141 r->a = cpu_to_be64((a << 1) | (b >> 63)); in gf128mul_x_bbe()
142 r->b = cpu_to_be64((b << 1) ^ _tt); in gf128mul_x_bbe()
145 void gf128mul_x_ble(be128 *r, const be128 *x) in gf128mul_x_ble() argument
151 r->a = cpu_to_le64((a << 1) ^ _tt); in gf128mul_x_ble()
152 r->b = cpu_to_le64((b << 1) | (a >> 63)); in gf128mul_x_ble()
176 void gf128mul_lle(be128 *r, const be128 *b) in gf128mul_lle() argument
[all …]
Dmichael_mic.c21 u32 l, r; member
28 u32 l, r; member
37 #define michael_block(l, r) \ argument
39 r ^= rol32(l, 17); \
40 l += r; \
41 r ^= xswap(l); \
42 l += r; \
43 r ^= rol32(l, 3); \
44 l += r; \
45 r ^= ror32(l, 2); \
[all …]
Dkhazad.c761 int r; in khazad_setkey() local
770 for (r = 0; r <= KHAZAD_ROUNDS; r++) { in khazad_setkey()
771 ctx->E[r] = T0[(int)(K1 >> 56) ] ^ in khazad_setkey()
779 c[r] ^ K2; in khazad_setkey()
781 K1 = ctx->E[r]; in khazad_setkey()
785 for (r = 1; r < KHAZAD_ROUNDS; r++) { in khazad_setkey()
786 K1 = ctx->E[KHAZAD_ROUNDS - r]; in khazad_setkey()
787 ctx->D[r] = T0[(int)S[(int)(K1 >> 56) ] & 0xff] ^ in khazad_setkey()
807 int r; in khazad_crypt() local
812 for (r = 1; r < KHAZAD_ROUNDS; r++) { in khazad_crypt()
[all …]
Danubis.c468 int N, R, i, r; in anubis_setkey() local
492 for (r = 0; r <= R; r++) { in anubis_setkey()
524 ctx->E[r][0] = K0; in anubis_setkey()
525 ctx->E[r][1] = K1; in anubis_setkey()
526 ctx->E[r][2] = K2; in anubis_setkey()
527 ctx->E[r][3] = K3; in anubis_setkey()
532 if (r == R) in anubis_setkey()
547 kappa[0] = inter[0] ^ rc[r]; in anubis_setkey()
560 for (r = 1; r < R; r++) { in anubis_setkey()
562 u32 v = ctx->E[R - r][i]; in anubis_setkey()
[all …]
Dfcrypt.c240 __be32 l, r; in fcrypt_encrypt() member
245 F_ENCRYPT(X.r, X.l, ctx->sched[0x0]); in fcrypt_encrypt()
246 F_ENCRYPT(X.l, X.r, ctx->sched[0x1]); in fcrypt_encrypt()
247 F_ENCRYPT(X.r, X.l, ctx->sched[0x2]); in fcrypt_encrypt()
248 F_ENCRYPT(X.l, X.r, ctx->sched[0x3]); in fcrypt_encrypt()
249 F_ENCRYPT(X.r, X.l, ctx->sched[0x4]); in fcrypt_encrypt()
250 F_ENCRYPT(X.l, X.r, ctx->sched[0x5]); in fcrypt_encrypt()
251 F_ENCRYPT(X.r, X.l, ctx->sched[0x6]); in fcrypt_encrypt()
252 F_ENCRYPT(X.l, X.r, ctx->sched[0x7]); in fcrypt_encrypt()
253 F_ENCRYPT(X.r, X.l, ctx->sched[0x8]); in fcrypt_encrypt()
[all …]
Dpoly1305_generic.c57 dctx->r[0] = (le32_to_cpuvp(key + 0) >> 0) & 0x3ffffff; in poly1305_setrkey()
58 dctx->r[1] = (le32_to_cpuvp(key + 3) >> 2) & 0x3ffff03; in poly1305_setrkey()
59 dctx->r[2] = (le32_to_cpuvp(key + 6) >> 4) & 0x3ffc0ff; in poly1305_setrkey()
60 dctx->r[3] = (le32_to_cpuvp(key + 9) >> 6) & 0x3f03fff; in poly1305_setrkey()
61 dctx->r[4] = (le32_to_cpuvp(key + 12) >> 8) & 0x00fffff; in poly1305_setrkey()
114 r0 = dctx->r[0]; in poly1305_blocks()
115 r1 = dctx->r[1]; in poly1305_blocks()
116 r2 = dctx->r[2]; in poly1305_blocks()
117 r3 = dctx->r[3]; in poly1305_blocks()
118 r4 = dctx->r[4]; in poly1305_blocks()
Dcast6_generic.c35 #define F1(D, r, m) ((I = ((m) + (D))), (I = rol32(I, (r))), \ argument
37 #define F2(D, r, m) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \ argument
39 #define F3(D, r, m) ((I = ((m) - (D))), (I = rol32(I, (r))), \ argument
Dwp512.c783 int i, r; in wp512_process_buffer() local
802 for (r = 0; r < WHIRLPOOL_ROUNDS; r++) { in wp512_process_buffer()
812 rc[r]; in wp512_process_buffer()
Ddes_generic.c25 #define ROL(x, r) ((x) = rol32((x), (r))) argument
26 #define ROR(x, r) ((x) = ror32((x), (r))) argument