From 33d9dc7db79902b41cc739fd57fafe6d907c1484 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 8 Aug 2023 17:31:55 +0800 Subject: [PATCH] cipher: xts, update function name --- cipher/benchmark_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cipher/benchmark_test.go b/cipher/benchmark_test.go index f26035f..fb52be2 100644 --- a/cipher/benchmark_test.go +++ b/cipher/benchmark_test.go @@ -395,7 +395,7 @@ func benchmarkXTS(b *testing.B, cipherFunc func([]byte) (cipher.Block, error), l b.SetBytes(int64(len(plaintext))) b.ResetTimer() for i := 0; i < b.N; i++ { - c.Encrypt(encrypted, plaintext, 0) + c.EncryptSector(encrypted, plaintext, 0) //c.Decrypt(decrypted, encrypted[:len(plaintext)], 0) } }