UDP-WG Implementation
Loading...
Searching...
No Matches
wireguard::Rm Class Reference

A controlled wrapper for the secret random value used for the WireGuard cookies. More...

#include <wireguard.h>

Public Member Functions

const crypto::stringGet ()
 Get the current value.
 

Detailed Description

A controlled wrapper for the secret random value used for the WireGuard cookies.

Remarks
See the CookiePacket for a more detailed explanation of what this is for.

Member Function Documentation

◆ Get()

const crypto::string & wireguard::Rm::Get ( )
inline

Get the current value.

Returns
The current value.
Remarks
If the value is older than 120 seconds, generate a new value.
See 5.4.7

The documentation for this class was generated from the following file: