diff options
-rw-r--r-- | tests/matrix/fallocate_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/matrix/fallocate_test.go b/tests/matrix/fallocate_test.go index ade6415..44ea541 100644 --- a/tests/matrix/fallocate_test.go +++ b/tests/matrix/fallocate_test.go @@ -161,6 +161,10 @@ func TestFallocate(t *testing.T) { // xchacha has 24 byte ivs instead of 16. 8kiB are two blocks, so // 2x8=16 bytes more. plain = plain - 16 + } else if testcase.isSet("-aegis") { + // aegis256 has 32 byte ivs and mac instead of 16. 8kiB are two blocks, so + // 2x32=64 bytes more. + plain = plain - 64 } err = syscallcompat.Fallocate(fd, FALLOC_DEFAULT, 0, plain) if err != nil { |