- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkAESGCM (0.2 sec)
-
src/crypto/cipher/benchmark_test.go
var out []byte ct := aesgcm.Seal(nil, nonce[:], buf[:], ad[:]) b.ResetTimer() for i := 0; i < b.N; i++ { out, _ = aesgcm.Open(out[:0], nonce[:], ct, ad[:]) } } func BenchmarkAESGCM(b *testing.B) { for _, length := range []int{64, 1350, 8 * 1024} { b.Run("Open-128-"+strconv.Itoa(length), func(b *testing.B) { benchmarkAESGCMOpen(b, make([]byte, length), 128/8) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 28 19:13:50 UTC 2021 - 3.3K bytes - Viewed (0)