Lines Matching +full:14 +full:v
7 /* $OpenBSD: chacha.c,v 1.1 2013/11/21 00:45:44 djm Exp $ */
19 #define U8C(v) (v##U) argument
20 #define U32C(v) (v##U) argument
22 #define U8V(v) ((u8)(v) & U8C(0xFF)) argument
23 #define U32V(v) ((u32)(v) & U32C(0xFFFFFFFF)) argument
25 #define ROTL32(v, n) \ argument
26 (U32V((v) << (n)) | ((v) >> (32 - (n))))
34 #define U32TO8_LITTLE(p, v) \ argument
36 (p)[0] = U8V((v) ); \
37 (p)[1] = U8V((v) >> 8); \
38 (p)[2] = U8V((v) >> 16); \
39 (p)[3] = U8V((v) >> 24); \
42 #define ROTATE(v,c) (ROTL32(v,c)) argument
43 #define XOR(v,w) ((v) ^ (w)) argument
44 #define PLUS(v,w) (U32V((v) + (w))) argument
45 #define PLUSONE(v) (PLUS((v),1)) argument
87 x->input[14] = U8TO32_LITTLE(iv + 0); in chacha_ivsetup()
94 x->input[14] = U8TO32_LITTLE(counter + 8); in chacha_ivsetup()
105 U32TO8_LITTLE(counter + 8, x->input[14]); in chacha_ctrsave()
135 j14 = x->input[14]; in chacha_encrypt_bytes()
248 x->input[14] = j14; in chacha_encrypt_bytes()