Made it a bit cleaner :)
This commit is contained in:
17
pkg/engine/constants.go
Normal file
17
pkg/engine/constants.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package engine
|
||||
|
||||
import "golang.org/x/crypto/chacha20poly1305"
|
||||
|
||||
const (
|
||||
// PubKeySize is the size of an X25519 public key in bytes
|
||||
PubKeySize = 32
|
||||
|
||||
// NonceSize is the size of an XChaCha20-Poly1305 nonce
|
||||
NonceSize = chacha20poly1305.NonceSizeX
|
||||
|
||||
// KeySize is the size of the symmetric key for XChaCha20-Poly1305
|
||||
KeySize = chacha20poly1305.KeySize
|
||||
|
||||
// HKDFInfo is the context string for key derivation
|
||||
HKDFInfo = "HIMBOCRYPT_V1"
|
||||
)
|
||||
Reference in New Issue
Block a user