MCPcopy
hub / github.com/kopia/kopia / Encrypt

Method Encrypt

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

Encrypt appends the encrypted bytes corresponding to the given plaintext to a given slice. Must not clobber the input slice and return ciphertext with additional padding and checksum.

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

Source from the content-addressed store, hash-verified

22 // Encrypt appends the encrypted bytes corresponding to the given plaintext to a given slice.
23 // Must not clobber the input slice and return ciphertext with additional padding and checksum.
24 Encrypt(plainText gather.Bytes, contentID []byte, output *gather.WriteBuffer) error
25
26 // Decrypt appends the unencrypted bytes corresponding to the given ciphertext to a given slice.
27 // Must not clobber the input slice. If IsAuthenticated() == true, Decrypt will perform

Callers 15

runBenchmarkMethod · 0.65
runBenchmarkMethod · 0.65
runBenchmarkMethod · 0.65
ProtectMethod · 0.65
EncryptFunction · 0.65
testPutAndGetFunction · 0.65
mustPutDummySessionBlobFunction · 0.65
TestFormattersFunction · 0.65
TestRoundTripFunction · 0.65
verifyCiphertextSamplesFunction · 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 6

testPutAndGetFunction · 0.52
mustPutDummySessionBlobFunction · 0.52
TestFormattersFunction · 0.52
TestRoundTripFunction · 0.52
verifyCiphertextSamplesFunction · 0.52
BenchmarkEncryptionFunction · 0.52