Improve benchmarks.

This commit is contained in:
Jeroen van Rijn
2024-08-16 17:00:16 +02:00
parent 40b8150a23
commit 6c46c9e04b
3 changed files with 53 additions and 55 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ _benchmark_aes256_gcm :: proc(
iv: [aes.GCM_IV_SIZE]byte
tag: [aes.GCM_TAG_SIZE]byte = ---
ctx := transmute(^aes.Context_GCM)context.user_ptr
ctx := (^aes.Context_GCM)(context.user_ptr)
for _ in 0 ..= options.rounds {
aes.seal_gcm(ctx, buf, tag[:], iv[:], nil, buf)