Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/if_wg/include/sys/wg_module.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <crypto/curve25519.h> | #include <crypto/curve25519.h> | ||||
#include <zinc/chacha20poly1305.h> | #include <zinc/chacha20poly1305.h> | ||||
#include <crypto/blake2s.h> | #include <crypto/blake2s.h> | ||||
MALLOC_DECLARE(M_WG); | |||||
enum noise_lengths { | enum noise_lengths { | ||||
NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE, | NOISE_PUBLIC_KEY_LEN = CURVE25519_KEY_SIZE, | ||||
NOISE_SYMMETRIC_KEY_LEN = CHACHA20POLY1305_KEY_SIZE, | NOISE_SYMMETRIC_KEY_LEN = CHACHA20POLY1305_KEY_SIZE, | ||||
NOISE_TIMESTAMP_LEN = sizeof(uint64_t) + sizeof(uint32_t), | NOISE_TIMESTAMP_LEN = sizeof(uint64_t) + sizeof(uint32_t), | ||||
NOISE_AUTHTAG_LEN = CHACHA20POLY1305_AUTHTAG_SIZE, | NOISE_AUTHTAG_LEN = CHACHA20POLY1305_AUTHTAG_SIZE, | ||||
NOISE_HASH_LEN = BLAKE2S_HASH_SIZE | NOISE_HASH_LEN = BLAKE2S_HASH_SIZE | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |