Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AES256GCM specifies the cipher suite AES-GCM with 256 bit keys. AES256GCM byte = iota // CHACHA20POLY1305 specifies the cipher suite ChaCha20Poly1305 with 256 bit keys. CHACHA20POLY1305 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decrypter ¶
type Decrypter struct { PrivateKey *rsa.PrivateKey Config *Config }
Decrypter can decrypt data with RSA private key
func NewDecrypter ¶
NewDecrypter create a new decrypter
type Encrypter ¶
Encrypter can encrypt data with RSA public key
func NewEncrypter ¶
NewEncrypter create a new encrypter
Click to show internal directories.
Click to hide internal directories.