type crypto/internal/fips140/ecdh.PrivateKey
22 uses
crypto/internal/fips140/ecdh (current package)
cast.go#L41: k := &PrivateKey{d: privateKey, pub: PublicKey{curve: p256}}
ecdh.go#L25: type PrivateKey struct {
ecdh.go#L30: func (priv *PrivateKey) Bytes() []byte {
ecdh.go#L34: func (priv *PrivateKey) PublicKey() *PublicKey {
ecdh.go#L139: func GenerateKey[P Point[P]](c *Curve[P], rand io.Reader) (*PrivateKey, error) {
ecdh.go#L168: func NewPrivateKey[P Point[P]](c *Curve[P], key []byte) (*PrivateKey, error) {
ecdh.go#L213: k := &PrivateKey{d: bytes.Clone(key), pub: PublicKey{curve: c.curve, q: publicKey}}
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#L105: fips *ecdh.PrivateKey
nist.go#L18: generate func(io.Reader) (*ecdh.PrivateKey, error)
nist.go#L19: newPrivateKey func([]byte) (*ecdh.PrivateKey, error)
nist.go#L21: sharedSecret func(*ecdh.PrivateKey, *ecdh.PublicKey) (sharedSecret []byte, err error)
nist.go#L166: generate: func(r io.Reader) (*ecdh.PrivateKey, error) {
nist.go#L169: newPrivateKey: func(b []byte) (*ecdh.PrivateKey, error) {
nist.go#L175: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {
nist.go#L189: generate: func(r io.Reader) (*ecdh.PrivateKey, error) {
nist.go#L192: newPrivateKey: func(b []byte) (*ecdh.PrivateKey, error) {
nist.go#L198: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {
nist.go#L212: generate: func(r io.Reader) (*ecdh.PrivateKey, error) {
nist.go#L215: newPrivateKey: func(b []byte) (*ecdh.PrivateKey, error) {
nist.go#L221: sharedSecret: func(priv *ecdh.PrivateKey, pub *ecdh.PublicKey) (sharedSecret []byte, err error) {