Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESGCM ¶
type AESGCM struct {
// contains filtered or unexported fields
}
func NewAESGCM ¶
func NewAESGCM(c Dependencies) *AESGCM
type Cipher ¶
type Cipher interface { // Encrypt encrypts and encodes the given plaintext, optionally using // additiona data. Encrypt(ctx context.Context, plaintext, additionalData []byte) (ciphertext string, err error) // Decrypt decodes, decrypts, and verifies the plaintext and additional data // from the ciphertext. The ciphertext must be given in the form as returned // by Encrypt. Decrypt(ctx context.Context, ciphertext string, additionalData []byte) (plaintext []byte, err error) }
Cipher provides AEAD (authenticated encryption with associated data). The ciphertext is returned base64url-encoded.
type Dependencies ¶
type Dependencies interface { fosite.GlobalSecretProvider fosite.RotatedGlobalSecretsProvider }
type XChaCha20Poly1305 ¶
type XChaCha20Poly1305 struct {
// contains filtered or unexported fields
}
func NewXChaCha20Poly1305 ¶
func NewXChaCha20Poly1305(d Dependencies) *XChaCha20Poly1305
Click to show internal directories.
Click to hide internal directories.