MCPcopy Create free account
hub / github.com/google/go-cloud / Decrypt

Method Decrypt

secrets/driver/driver.go:34–34  ·  view source on GitHub ↗

Decrypt decrypts the ciphertext and returns the plaintext or an error. Decrypt *may* decrypt ciphertexts that were encrypted using a different key than the one provided to Keeper; some drivers encode the key used in the ciphertext.

(ctx context.Context, ciphertext []byte)

Source from the content-addressed store, hash-verified

32 // key than the one provided to Keeper; some drivers encode the key used
33 // in the ciphertext.
34 Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error)
35
36 // Encrypt encrypts the plaintext using the key, and returns the ciphertext.
37 Encrypt(ctx context.Context, plaintext []byte) ([]byte, error)

Callers 14

testEncryptDecryptFunction · 0.95
testMultipleKeysFunction · 0.95
testAsFunction · 0.95
TestSmallDataFunction · 0.95
ExecuteMethod · 0.65
Example_openFromURLFunction · 0.65
DecryptMethod · 0.65
DecryptMethod · 0.65
DecryptMethod · 0.65

Implementers 5

keepersecrets/gcpkms/kms.go
keepersecrets/hashivault/vault.go
keepersecrets/azurekeyvault/akv.go
keepersecrets/awskms/kms.go
keepersecrets/localsecrets/localsecrets.go

Calls

no outgoing calls

Tested by 3

TestSmallDataFunction · 0.76
Example_openFromURLFunction · 0.52