FD.io VPP  v20.09-64-g4f7b92f0a
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 23 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 67 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 85 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 21 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 113 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 105 of file wireguard_key.c.

+ Here is the caller graph for this function: