History log of /dflybsd-src/sys/net/wg/selftest/cookie.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 03c3b87e 05-Feb-2024 Aaron LI <aly@aaronly.me>

wg: Refactor cookie functions to make cookie_{checker,maker} opaque

- Rename cookie_{checker,maker}_init() to cookie_{checker,maker}_alloc(),
in symmetry with cookie_{checker,maker}_free().
- Make

wg: Refactor cookie functions to make cookie_{checker,maker} opaque

- Rename cookie_{checker,maker}_init() to cookie_{checker,maker}_alloc(),
in symmetry with cookie_{checker,maker}_free().
- Make cookie_{checker,maker} structs opaque, and move them from
wg_cookie.h to wg_cookie.c.
- Update if_wg.c and selftest code accordingly.

show more ...


# af6d6403 25-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Style cleanups and minor updates to selftest cookie.c and counter.c

- Style cleanups to make them consistent.
- Add '#undef' to cleanup defines.
- Add MIT license contents to file headers.
- Twe

wg: Style cleanups and minor updates to selftest cookie.c and counter.c

- Style cleanups to make them consistent.
- Add '#undef' to cleanup defines.
- Add MIT license contents to file headers.
- Tweak 'for' loops in noise_counter_selftest() to make them more clear.
- Rename 'rl' to be 'rl_test'; rename 'MESSAGE_LEN' to be
'T_MESSAGE_LEN'.
- Remove unnecessary '[0 ... INITIATIONS_BURSTABLE - 1]' initialization
designator, and thus save one GNU extension.

show more ...


# 9de0ba69 24-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Port selftest cookie.c and counter.c

Note that 'int sleep_time' would overflow in calculating the tsleep()
timeout ticks, so change it to 'uint64_t' type.


# 82c705f0 23-Jan-2024 Aaron LI <aly@aaronly.me>

wg: Import selftest code from wireguard-freebsd

URL: https://git.zx2c4.com/wireguard-freebsd/
Files:
- src/selftest/allowedips.c
- src/selftest/cookie.c
- src/selftest/counter.c