Searched refs:WG_KEY_LEN_BASE64 (Results 1 - 7 of 7) sorted by relevance

/freebsd-current/contrib/wireguard-tools/
H A Dencoding.h13 #define WG_KEY_LEN_BASE64 ((((WG_KEY_LEN) + 2) / 3) * 4 + 1) macro
16 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]);
H A Dpubkey.c17 char base64[WG_KEY_LEN_BASE64];
30 base64[WG_KEY_LEN_BASE64 - 1] = '\0';
H A Dencoding.c24 void key_to_base64(char base64[static WG_KEY_LEN_BASE64], const uint8_t key[static WG_KEY_LEN]) argument
31 base64[WG_KEY_LEN_BASE64 - 2] = '=';
32 base64[WG_KEY_LEN_BASE64 - 1] = '\0';
56 if (strlen(base64) != WG_KEY_LEN_BASE64 - 1 || base64[WG_KEY_LEN_BASE64 - 2] != '=')
H A Dgenkey.c78 char base64[WG_KEY_LEN_BASE64];
H A Dshowconf.c23 char base64[WG_KEY_LEN_BASE64];
H A Dconfig.c121 char dst[WG_KEY_LEN_BASE64];
130 if (fread(dst, WG_KEY_LEN_BASE64 - 1, 1, f) != 1) {
141 dst[WG_KEY_LEN_BASE64 - 1] = '\0';
H A Dshow.c72 static char base64[WG_KEY_LEN_BASE64];

Completed in 58 milliseconds