Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkAESGCM (0.11 sec)

  1. 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)
Back to top