1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:54:48 -07:00
go/src/crypto/ecdsa
Russ Cox b30ba3df9f crypto/internal/boring/bcache: make Cache type-safe using generics
Generics lets us write Cache[K, V] instead of using unsafe.Pointer,
which lets us remove all the uses of package unsafe around the
uses of the cache.

I tried to do Cache[*K, *V] instead of Cache[K, V] but that was not possible.

Change-Id: If3b54cf4c8d2a44879a5f343fd91ecff096537e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/423357
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
2022-08-18 00:30:19 +00:00
..
testdata
boring.go crypto/internal/boring/bcache: make Cache type-safe using generics 2022-08-18 00:30:19 +00:00
ecdsa_noasm.go
ecdsa_s390x_test.go
ecdsa_s390x.go
ecdsa_s390x.s
ecdsa_test.go
ecdsa.go
equal_test.go
example_test.go
notboring.go