Made it a bit cleaner :)

This commit is contained in:
2025-12-19 16:57:47 -07:00
parent 302979b01a
commit 3822b1813c
7 changed files with 217 additions and 137 deletions

17
pkg/engine/constants.go Normal file
View 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"
)