Improve benchmarks.

This commit is contained in:
Jeroen van Rijn committed 2024-08-16 17:00:16 +02:00
1 parent 40b8150a23
commit 6c46c9e04b
3 files changed
+53 -55

No files matched your search

+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)