type crypto/ecdh.PublicKey
36 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#L100: PublicKey() *PublicKey
ecdh.go#L102: ECDH(*PublicKey) ([]byte, error)
ecdh.go#L115: publicKey *PublicKey
ecdh.go#L131: func (k *PrivateKey) ECDH(remote *PublicKey) ([]byte, error) {
ecdh.go#L166: func (k *PrivateKey) PublicKey() *PublicKey {
nist.go#L42: publicKey: &PublicKey{curve: c, publicKey: pub.Bytes(), boring: pub},
nist.go#L63: publicKey: &PublicKey{
nist.go#L97: publicKey: &PublicKey{curve: c, publicKey: pub.Bytes(), boring: pub},
nist.go#L111: publicKey: &PublicKey{
nist.go#L120: func (c *nistCurve) NewPublicKey(key []byte) (*PublicKey, error) {
nist.go#L126: k := &PublicKey{
nist.go#L146: 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#L63: func (pub *PublicKey) ECDH() (*ecdh.PublicKey, error) {
crypto/hpke
kem.go#L188: pub *ecdh.PublicKey
kem.go#L204: func NewDHKEMPublicKey(pub *ecdh.PublicKey) (PublicKey, error) {
pq.go#L125: t *ecdh.PublicKey
pq.go#L142: func NewHybridPublicKey(pq crypto.Encapsulator, t *ecdh.PublicKey) (PublicKey, error) {
pq.go#L172: var k *ecdh.PublicKey
pq.go#L342: var pub *ecdh.PublicKey
crypto/x509
x509.go#L118: case *ecdh.PublicKey:
github.com/refraction-networking/utls
u_alias.go#L25: func (*KeySharesParameters) AddEcdheKeypair(curveID CurveID, ecdheKey *ecdh.PrivateKey, ecdhePubKey *ecdh.PublicKey) {
u_alias.go#L31: func (*KeySharesParameters) GetEcdhePubkey(curveID CurveID) (params *ecdh.PublicKey, ok bool) { return }
github.com/refraction-networking/utls/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) {
 |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |