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

Function decrypt

pkg/cookies/csrf.go:315–321  ·  view source on GitHub ↗
(data []byte, opts *options.Cookie)

Source from the content-addressed store, hash-verified

313}
314
315func decrypt(data []byte, opts *options.Cookie) ([]byte, error) {
316 cipher, err := makeCipher(opts)
317 if err != nil {
318 return nil, err
319 }
320 return cipher.Decrypt(data)
321}
322
323func makeCipher(opts *options.Cookie) (encryption.Cipher, error) {
324 secret, err := opts.GetSecret()

Callers 1

decodeCSRFCookieFunction · 0.85

Calls 2

makeCipherFunction · 0.85
DecryptMethod · 0.65

Tested by

no test coverage detected