MCPcopy Index your code
hub / github.com/ory/kratos / Decrypt

Method Decrypt

cipher/cipher.go:20–20  ·  view source on GitHub ↗

Decrypt takes a hex-encoded binary ciphertext and decrypts it or returns an error if the decryption failed. If the ciphertext is empty a nil byte slice is returned.

(ctx context.Context, encrypted string)

Source from the content-addressed store, hash-verified

18 //
19 // If the ciphertext is empty a nil byte slice is returned.
20 Decrypt(ctx context.Context, encrypted string) ([]byte, error)
21}
22
23type Provider interface {

Callers 4

DecryptMethod · 0.65
testAllWorkFunction · 0.65
DecryptStateFunction · 0.65

Implementers 3

XChaCha20Poly1305cipher/chacha20.go
AEScipher/aes.go
Noopcipher/noop.go

Calls

no outgoing calls

Tested by 1

testAllWorkFunction · 0.52