FD.io VPP  v21.06-1-gbb7418cf9
Vector Packet Processing
wireguard_key.h File Reference
+ Include dependency graph for wireguard_key.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  curve25519_lengths { CURVE25519_KEY_SIZE = 32 }
 

Functions

bool curve25519_gen_shared (u8 shared_key[CURVE25519_KEY_SIZE], const u8 secret_key[CURVE25519_KEY_SIZE], const u8 basepoint[CURVE25519_KEY_SIZE])
 
bool curve25519_gen_secret (u8 secret[CURVE25519_KEY_SIZE])
 
bool curve25519_gen_public (u8 public_key[CURVE25519_KEY_SIZE], const u8 secret_key[CURVE25519_KEY_SIZE])
 
bool key_to_base64 (const u8 *src, size_t src_len, u8 *out)
 
bool key_from_base64 (const u8 *src, size_t src_len, u8 *out)
 

Enumeration Type Documentation

◆ curve25519_lengths

Enumerator
CURVE25519_KEY_SIZE 

Definition at line 22 of file wireguard_key.h.

Function Documentation

◆ curve25519_gen_public()

bool curve25519_gen_public ( u8  public_key[CURVE25519_KEY_SIZE],
const u8  secret_key[CURVE25519_KEY_SIZE] 
)

Definition at line 66 of file wireguard_key.c.

+ Here is the caller graph for this function:

◆ curve25519_gen_secret()

bool curve25519_gen_secret ( u8  secret[CURVE25519_KEY_SIZE])

Definition at line 84 of file wireguard_key.c.

+ Here is the caller graph for this function:

◆ curve25519_gen_shared()

bool curve25519_gen_shared ( u8  shared_key[CURVE25519_KEY_SIZE],
const u8  secret_key[CURVE25519_KEY_SIZE],
const u8  basepoint[CURVE25519_KEY_SIZE] 
)

Definition at line 20 of file wireguard_key.c.

+ Here is the caller graph for this function:

◆ key_from_base64()

bool key_from_base64 ( const u8 src,
size_t  src_len,
u8 out 
)

Definition at line 112 of file wireguard_key.c.

+ Here is the caller graph for this function:

◆ key_to_base64()

bool key_to_base64 ( const u8 src,
size_t  src_len,
u8 out 
)

Definition at line 104 of file wireguard_key.c.

+ Here is the caller graph for this function: