Documentation ¶
Index ¶
Constants ¶
View Source
const ( Curve25519Xchacha20poly1305 byte = iota GCPKMSXchacha20poly1305 AWSKMSXchacha20poly1305 HeaderSize = 1 )
Cipher suites used for encryption. Will always be the first byte of the encrypted message.
Variables ¶
View Source
var ( ErrNoCipherSuites = errors.New("crypto: no cipher suites found") ErrMultipleCipherSuites = errors.New("crypto: more than one provider per section") )
Error definitions
Functions ¶
func ConcatByteSlices ¶ added in v0.0.2
ConcatByteSlices concatenates multiple byte slices and returns the resulting slice
Types ¶
type Decrypter ¶
Decrypter is the interface that wraps the basic Decrypt method.
Decrypt decrypts the ciphertext.
type EncryptDecrypter ¶
EncryptDecrypter is the interface that groups the basic Encrypt and Decrypt methods.
Directories ¶
Path | Synopsis |
---|---|
Package awskms encrypts the message using AWS KMS.
|
Package awskms encrypts the message using AWS KMS. |
Package curve25519 implements the unauthenticated public-key encryption scheme.
|
Package curve25519 implements the unauthenticated public-key encryption scheme. |
Package gcpkms encrypts the message using Google Cloud KMS.
|
Package gcpkms encrypts the message using Google Cloud KMS. |
Package xchacha20poly1305 leverages the extended nonce variant XChaCha20-Poly1305 of the ChaCha20-Poly1305 AEAD as specified in https://tools.ietf.org/html/draft-arciszewski-xchacha-03.
|
Package xchacha20poly1305 leverages the extended nonce variant XChaCha20-Poly1305 of the ChaCha20-Poly1305 AEAD as specified in https://tools.ietf.org/html/draft-arciszewski-xchacha-03. |
Click to show internal directories.
Click to hide internal directories.