Searched refs:XOR (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/crypt/ |
D | chacha_private.h | 41 #define XOR(v,w) ((v) ^ (w)) macro 46 a = PLUS(a,b); d = ROTATE(XOR(d,a),16); \ 47 c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \ 48 a = PLUS(a,b); d = ROTATE(XOR(d,a), 8); \ 49 c = PLUS(c,d); b = ROTATE(XOR(b,c), 7); 167 x0 = XOR(x0,U8TO32_LITTLE(m + 0)); in chacha_encrypt_bytes() 168 x1 = XOR(x1,U8TO32_LITTLE(m + 4)); in chacha_encrypt_bytes() 169 x2 = XOR(x2,U8TO32_LITTLE(m + 8)); in chacha_encrypt_bytes() 170 x3 = XOR(x3,U8TO32_LITTLE(m + 12)); in chacha_encrypt_bytes() 171 x4 = XOR(x4,U8TO32_LITTLE(m + 16)); in chacha_encrypt_bytes() [all …]
|