cipher: xts, update function name

This commit is contained in:
Sun Yimin 2023-08-08 17:31:55 +08:00 committed by GitHub
parent f9bd2f002a
commit 33d9dc7db7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}