]> Cypherpunks.ru repositories - govpn.git/blob - doc/verifierstruct.texi
Merge branch 'develop'
[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 it's 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 public key of Ed25519 generated from the PBKDF2 of the
14 passphrase in hexadecimal encoding. @code{PeerId} is used as a 128-bit
15 salt. Server stores and knows only verifier. Client can compute the
16 whole keypair every time he makes handshake.