Debian Codegraph @

crypto_decode/653xint16/ref/decode.c

raw
1 // 20250302 djb: port to -Wc++-compat
2 #include "crypto_decode.h"
3 #include "crypto_uint16.h"
4
5 void crypto_decode(void *v,const unsigned char *s)
6 {
7 crypto_uint16 *x = (crypto_uint16 *) v;
8 int i;
9
10 for (i = 0;i < 653;++i) {
11 crypto_uint16 u0 = s[0];
12 crypto_uint16 u1 = s[1];
13 u1 <<= 8;
14 *x = u0 | u1;
15 x += 1;
16 s += 2;
17 }
18 }