Documentation
¶
Overview ¶
Package crypto provides X25519 key exchange and AES-256-GCM encryption for end-to-end encrypted communication between SDK clients and guest agents.
The daemon never sees plaintext payloads — it forwards opaque encrypted blobs while still being able to read JSON-RPC method names for routing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveSharedSecret ¶
DeriveSharedSecret performs X25519 ECDH and returns the 32-byte shared secret.
Types ¶
type KeyPair ¶
type KeyPair struct {
Private *ecdh.PrivateKey
Public *ecdh.PublicKey
}
KeyPair holds an X25519 private/public key pair.
func GenerateKeyPair ¶
GenerateKeyPair generates a new X25519 key pair.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session holds a negotiated encryption session with AES-256-GCM.
func NewSession ¶
NewSession creates an encryption session from a 32-byte shared secret.
func (*Session) OpenBase64 ¶
OpenBase64 decrypts a base64-encoded ciphertext.