mirror of
https://github.com/restic/restic.git
synced 2025-12-03 21:21:47 +00:00
crypto: move crypto buffer helpers
This commit is contained in:
@@ -61,7 +61,7 @@ func newTestRepo(content []TestFile) *TestRepo {
|
||||
|
||||
key := crypto.NewRandomKey()
|
||||
seal := func(data []byte) []byte {
|
||||
ciphertext := restic.NewBlobBuffer(len(data))
|
||||
ciphertext := crypto.NewBlobBuffer(len(data))
|
||||
ciphertext = ciphertext[:0] // truncate the slice
|
||||
nonce := crypto.NewRandomNonce()
|
||||
ciphertext = append(ciphertext, nonce...)
|
||||
|
||||
Reference in New Issue
Block a user