MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / Cipher

Interface Cipher

pkg/encryption/cipher.go:13–16  ·  view source on GitHub ↗

Cipher provides methods to encrypt and decrypt

Source from the content-addressed store, hash-verified

11
12// Cipher provides methods to encrypt and decrypt
13type Cipher interface {
14 Encrypt(value []byte) ([]byte, error)
15 Decrypt(ciphertext []byte) ([]byte, error)
16}
17
18type base64Cipher struct {
19 Cipher Cipher

Callers 16

EncodeSessionStateMethod · 0.65
encryptFunction · 0.65
runEncryptAndDecryptFunction · 0.65
TestGCMtoCFBErrorsFunction · 0.65
DecodeSessionStateFunction · 0.65
decryptFunction · 0.65

Implementers 3

base64Cipherpkg/encryption/cipher.go
cfbCipherpkg/encryption/cipher.go
gcmCipherpkg/encryption/cipher.go

Calls

no outgoing calls

Tested by

no test coverage detected