Documentation
¶
Index ¶
- Constants
- Variables
- func ClientDecrypt(ciphertext, combinedSecret []byte, sid string) ([]byte, error)
- func ClientEncrypt(serverPubKeyBytes, plaintext []byte, sid string) ([]byte, []byte, error)
- func InitVault()
- func ServerDecrypt(dk *HybridPrivateKey, blob []byte, sid string) ([]byte, []byte, error)
- func ServerEncrypt(combinedSecret, plaintext []byte, sid string) ([]byte, error)
- type HybridPrivateKey
Constants ¶
View Source
const ( KEMCiphertextSize = 1568 // ML-KEM-1024 Ciphertext X25519PubKeySize = 32 // Standard X25519 Public Key NonceSize = 12 // AES-GCM Standard Nonce )
Variables ¶
View Source
var EncodedVaultKey string
Functions ¶
func ClientDecrypt ¶
ClientDecrypt (Client Side)
func ClientEncrypt ¶
ClientEncrypt (Client Side)
func ServerDecrypt ¶
ServerDecrypt (Server Side)
Types ¶
type HybridPrivateKey ¶
type HybridPrivateKey struct {
MLKEM *mlkem.DecapsulationKey1024
X25519 *ecdh.PrivateKey
}
HybridPrivateKey holds both the Post-Quantum and Classical keys
var VaultKey *HybridPrivateKey
Click to show internal directories.
Click to hide internal directories.