type crypto/ecdh.PublicKey
24 uses
crypto/ecdh (current package)
ecdh.go#L45: NewPublicKey(key []byte) (*PublicKey, error)
ecdh.go#L52: ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error)
ecdh.go#L60: privateKeyToPublicKey(*PrivateKey) *PublicKey
ecdh.go#L68: type PublicKey struct {
ecdh.go#L75: func (k *PublicKey) Bytes() []byte {
ecdh.go#L89: func (k *PublicKey) Equal(x crypto.PublicKey) bool {
ecdh.go#L90: xx, ok := x.(*PublicKey)
ecdh.go#L98: func (k *PublicKey) Curve() Curve {
ecdh.go#L113: publicKey *PublicKey
ecdh.go#L126: func (k *PrivateKey) ECDH(remote *PublicKey) ([]byte, error) {
ecdh.go#L161: func (k *PrivateKey) PublicKey() *PublicKey {
ecdh.go#L172: k.publicKey = &PublicKey{
nist.go#L105: func (c *nistCurve[Point]) privateKeyToPublicKey(key *PrivateKey) *PublicKey {
nist.go#L123: return &PublicKey{
nist.go#L167: func (c *nistCurve[Point]) NewPublicKey(key []byte) (*PublicKey, error) {
nist.go#L172: k := &PublicKey{
nist.go#L191: func (c *nistCurve[Point]) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
x25519.go#L54: func (c *x25519Curve) privateKeyToPublicKey(key *PrivateKey) *PublicKey {
x25519.go#L58: k := &PublicKey{
x25519.go#L67: func (c *x25519Curve) NewPublicKey(key []byte) (*PublicKey, error) {
x25519.go#L71: return &PublicKey{
x25519.go#L77: func (c *x25519Curve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
crypto/ecdsa
ecdsa.go#L57: func (k *PublicKey) ECDH() (*ecdh.PublicKey, error) {
crypto/x509
x509.go#L117: case *ecdh.PublicKey:
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |