mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-09-05 08:37:27 -04:00
Correct constant comment
This commit is contained in:
@@ -5,13 +5,15 @@ import (
|
|||||||
"golang.org/x/crypto/chacha20poly1305"
|
"golang.org/x/crypto/chacha20poly1305"
|
||||||
)
|
)
|
||||||
|
|
||||||
// parameters for Argon2
|
|
||||||
const (
|
const (
|
||||||
|
// parameters for Argon2
|
||||||
argonTime = 1
|
argonTime = 1
|
||||||
argonMemory = 64 * 1024
|
argonMemory = 64 * 1024
|
||||||
argonThreads = 4
|
argonThreads = 4
|
||||||
argonKeyLen = chacha20poly1305.KeySize
|
argonKeyLen = chacha20poly1305.KeySize
|
||||||
saltSize = 16
|
|
||||||
|
// general constants
|
||||||
|
saltSize = 16
|
||||||
)
|
)
|
||||||
|
|
||||||
// DeriveKey derives an encryption key from a passphrase using Argon2.
|
// DeriveKey derives an encryption key from a passphrase using Argon2.
|
||||||
|
|||||||
Reference in New Issue
Block a user