type crypto/ecdh.PublicKey
26 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: type PublicKey struct {
ecdh.go#L68: func (k *PublicKey) Bytes() []byte {
ecdh.go#L82: func (k *PublicKey) Equal(x crypto.PublicKey) bool {
ecdh.go#L83: xx, ok := x.(*PublicKey)
ecdh.go#L91: func (k *PublicKey) Curve() Curve {
ecdh.go#L103: publicKey *PublicKey
ecdh.go#L119: func (k *PrivateKey) ECDH(remote *PublicKey) ([]byte, error) {
ecdh.go#L154: func (k *PrivateKey) PublicKey() *PublicKey {
nist.go#L41: publicKey: &PublicKey{curve: c, publicKey: pub.Bytes(), boring: pub},
nist.go#L60: publicKey: &PublicKey{
nist.go#L94: publicKey: &PublicKey{curve: c, publicKey: pub.Bytes(), boring: pub},
nist.go#L108: publicKey: &PublicKey{
nist.go#L117: func (c *nistCurve) NewPublicKey(key []byte) (*PublicKey, error) {
nist.go#L123: k := &PublicKey{
nist.go#L143: func (c *nistCurve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
x25519.go#L65: publicKey: &PublicKey{curve: c, publicKey: publicKey},
x25519.go#L69: func (c *x25519Curve) NewPublicKey(key []byte) (*PublicKey, error) {
x25519.go#L76: return &PublicKey{
x25519.go#L82: func (c *x25519Curve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
crypto/ecdsa
ecdsa.go#L51: func (k *PublicKey) ECDH() (*ecdh.PublicKey, error) {
crypto/internal/hpke
hpke.go#L88: func (dh *dhKEM) Encap(pubRecipient *ecdh.PublicKey) (sharedSecret []byte, encapPub []byte, err error) {
hpke.go#L222: func SetupSender(kemID, kdfID, aeadID uint16, pub *ecdh.PublicKey, info []byte) ([]byte, *Sender, error) {
hpke.go#L299: func ParseHPKEPublicKey(kemID uint16, bytes []byte) (*ecdh.PublicKey, error) {
crypto/x509
x509.go#L118: case *ecdh.PublicKey: