Files
himbocrypt/pkg/engine/constants.go
T
2025-12-19 16:57:47 -07:00

18 lines
437 B
Go

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"
)