MCPcopy
hub / github.com/restic/restic / CiphertextLength

Function CiphertextLength

internal/crypto/buffer.go:17–19  ·  view source on GitHub ↗

CiphertextLength returns the encrypted length of a blob with plaintextSize bytes.

(plaintextSize int)

Source from the content-addressed store, hash-verified

15// CiphertextLength returns the encrypted length of a blob with plaintextSize
16// bytes.
17func CiphertextLength(plaintextSize int) int {
18 return plaintextSize + Extension
19}

Callers 15

loadMethod · 0.92
saveMethod · 0.92
testLoadBlobFunction · 0.92
saveAndEncryptMethod · 0.92
TestStreamPackFallbackFunction · 0.92
AddKeyFunction · 0.92
FinalizeMethod · 0.92
HeaderOverheadMethod · 0.92
ListFunction · 0.92
TestUnpackedVerificationFunction · 0.92
makeFakePackedBlobFunction · 0.92
TestMasterIndexFunction · 0.92

Calls

no outgoing calls

Tested by 8

testLoadBlobFunction · 0.74
TestStreamPackFallbackFunction · 0.74
TestUnpackedVerificationFunction · 0.74
makeFakePackedBlobFunction · 0.74
TestMasterIndexFunction · 0.74
TestRewriteSplitPacksFunction · 0.74