FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
wireguard_key.c File Reference
+ Include dependency graph for wireguard_key.c:

Go to the source code of this file.

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_public (u8 public_key[CURVE25519_KEY_SIZE], const u8 secret_key[CURVE25519_KEY_SIZE])
 
bool curve25519_gen_secret (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)
 

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_key[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: