type crypto/internal/fips140/ecdh.PublicKey
20 uses
crypto/internal/fips140/ecdh (current package)
cast.go#L41: k := &PrivateKey{d: privateKey, pub: PublicKey{curve: p256}}
cast.go#L42: peer := &PublicKey{curve: p256, q: publicKey}
ecdh.go#L26: pub PublicKey
ecdh.go#L34: func (priv *PrivateKey) PublicKey() *PublicKey {
ecdh.go#L38: type PublicKey struct {
ecdh.go#L43: func (pub *PublicKey) Bytes() []byte {
ecdh.go#L213: k := &PrivateKey{d: bytes.Clone(key), pub: PublicKey{curve: c.curve, q: publicKey}}
ecdh.go#L217: func NewPublicKey[P Point[P]](c *Curve[P], key []byte) (*PublicKey, error) {
ecdh.go#L231: return &PublicKey{curve: c.curve, q: bytes.Clone(key)}, nil
ecdh.go#L234: func ECDH[P Point[P]](c *Curve[P], k *PrivateKey, peer *PublicKey) ([]byte, error) {
ecdh.go#L240: func ecdh[P Point[P]](c *Curve[P], k *PrivateKey, peer *PublicKey) ([]byte, error) {
crypto/ecdh
ecdh.go#L64: fips *ecdh.PublicKey
nist.go#L20: newPublicKey func(publicKey []byte) (*ecdh.PublicKey, error)
nist.go#L21: sharedSecret func(*ecdh.PrivateKey, *ecdh.PublicKey) (sharedSecret []byte, err error)
nist.go#L172: newPublicKey: func(publicKey []byte) (*ecdh.PublicKey, error) {
nist.go#L175: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {
nist.go#L195: newPublicKey: func(publicKey []byte) (*ecdh.PublicKey, error) {
nist.go#L198: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {
nist.go#L218: newPublicKey: func(publicKey []byte) (*ecdh.PublicKey, error) {
nist.go#L221: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {