MCPcopy
hub / github.com/kopia/kopia / Decrypt

Method Decrypt

repo/encryption/encryption.go:29–29  ·  view source on GitHub ↗

Decrypt appends the unencrypted bytes corresponding to the given ciphertext to a given slice. Must not clobber the input slice. If IsAuthenticated() == true, Decrypt will perform authenticity check before decrypting.

(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

27 // Must not clobber the input slice. If IsAuthenticated() == true, Decrypt will perform
28 // authenticity check before decrypting.
29 Decrypt(cipherText gather.Bytes, contentID []byte, output *gather.WriteBuffer) error
30
31 // Overhead is the number of bytes of overhead added by Encrypt()
32 Overhead() int

Callers 9

runBenchmarkMethod · 0.65
VerifyMethod · 0.65
DecryptFunction · 0.65
testPutAndGetFunction · 0.65
decryptAndVerifyMethod · 0.65
TestFormattersFunction · 0.65
TestRoundTripFunction · 0.65
verifyCiphertextSamplesFunction · 0.65
DecryptMethod · 0.65

Implementers 5

badEncryptorinternal/blobcrypto/blob_crypto_test.g
ReedSolomonCrcECCrepo/ecc/ecc_rs_crc.go
aes256GCMHmacSha256repo/encryption/aes256_gcm_hmac_sha256
chacha20poly1305hmacSha256Encryptorrepo/encryption/chacha20_poly1305_hmac
encryptorWrapperrepo/format/encryptor_wrapper.go

Calls

no outgoing calls

Tested by 4

testPutAndGetFunction · 0.52
TestFormattersFunction · 0.52
TestRoundTripFunction · 0.52
verifyCiphertextSamplesFunction · 0.52