Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidKey = errors.New("invalid key") ErrUnwrap = errors.New("unwrap failed") )
Functions ¶
func DecryptAESGCM ¶
DecryptAESGCM decrypts data using AES-GCM. Format: IV (12 bytes) || Ciphertext
func DecryptX25519 ¶ added in v0.3.0
DecryptX25519 implements ECIES decryption consistent with the web client. Format: EphemeralPubKey (32 bytes) || IV (12 bytes) || Ciphertext
Types ¶
type S3BackupConfig ¶ added in v0.3.0
type Service ¶
type Service struct {
S3BackupEnabled bool
S3BackupConfig S3BackupConfig
ClientID string
// contains filtered or unexported fields
}
func NewService ¶
NewService creates a new encryption service with the given Hex-encoded X25519 private key.
Click to show internal directories.
Click to hide internal directories.