- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for NewUnauthenticatedCipher (0.26 sec)
-
src/crypto/ecdh/ecdh_test.go
t.Run("X25519", func(t *testing.T) { f(t, ecdh.X25519()) }) } func BenchmarkECDH(b *testing.B) { benchmarkAllCurves(b, func(b *testing.B, curve ecdh.Curve) { c, err := chacha20.NewUnauthenticatedCipher(make([]byte, 32), make([]byte, 12)) if err != nil { b.Fatal(err) } rand := cipher.StreamReader{ S: c, R: zeroReader, } peerKey, err := curve.GenerateKey(rand)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 18K bytes - Viewed (0)