MCPcopy
hub / github.com/ory/hydra / Encrypt

Method Encrypt

aead/aead.go:17–17  ·  view source on GitHub ↗

Encrypt encrypts and encodes the given plaintext, optionally using additional data.

(ctx context.Context, plaintext, additionalData []byte)

Source from the content-addressed store, hash-verified

15 // Encrypt encrypts and encodes the given plaintext, optionally using
16 // additional data.
17 Encrypt(ctx context.Context, plaintext, additionalData []byte) (ciphertext string, err error)
18
19 // Decrypt decodes, decrypts, and verifies the plaintext and additional data
20 // from the ciphertext. The ciphertext must be given in the form as returned

Callers 11

TestAEADFunction · 0.95
EncodeFunction · 0.65
NewUpdateClientCmdFunction · 0.65
NewCreateClientsCommandFunction · 0.65
NewImportClientCmdFunction · 0.65
AddKeyMethod · 0.65
AddKeySetMethod · 0.65
sqlSchemaFromRequestMethod · 0.65
NewNonceMethod · 0.65
SetLinkHeaderFunction · 0.65

Implementers 2

AESGCMaead/aesgcm.go
XChaCha20Poly1305aead/xchacha20.go

Calls

no outgoing calls

Tested by 1

TestAEADFunction · 0.76