]> Cypherpunks.ru repositories - govpn.git/blob - doc/verifierstruct.texi
65a4e086c14d7fbf8e5fd896fc4145c05845e077
[govpn.git] / doc / verifierstruct.texi
1 @node Verifier structure
2 @section Verifier structure
3
4 Verifier is a derivative of the password. It is resistant to
5 dictionary attacks and can not be used for authentication (only
6 its verifying).
7
8 @verbatim
9 SOURCE = PBKDF2(SALT=PeerId, PASSWORD, 1<<16, SHA512)
10 PUB, PRIV = Ed25519.Generate(SOURCE)
11 @end verbatim
12
13 Verifier is @code{PUB} public key of Ed25519 generated from the PBKDF2
14 of the passphrase in hexadecimal encoding. @code{PeerId} is used as a
15 128-bit salt. Server stores and knows only verifier. Client can compute
16 the whole keypair every time he makes handshake.