type crypto/ecdh.PrivateKey
32 uses
crypto/ecdh (current package)
ecdh.go#L24: GenerateKey(rand io.Reader) (*PrivateKey, error)
ecdh.go#L35: NewPrivateKey(key []byte) (*PrivateKey, error)
ecdh.go#L52: ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error)
ecdh.go#L60: privateKeyToPublicKey(*PrivateKey) *PublicKey
ecdh.go#L107: type PrivateKey struct {
ecdh.go#L126: func (k *PrivateKey) ECDH(remote *PublicKey) ([]byte, error) {
ecdh.go#L134: func (k *PrivateKey) Bytes() []byte {
ecdh.go#L148: func (k *PrivateKey) Equal(x crypto.PrivateKey) bool {
ecdh.go#L149: xx, ok := x.(*PrivateKey)
ecdh.go#L157: func (k *PrivateKey) Curve() Curve {
ecdh.go#L161: func (k *PrivateKey) PublicKey() *PublicKey {
ecdh.go#L186: func (k *PrivateKey) Public() crypto.PublicKey {
nist.go#L38: func (c *nistCurve[Point]) GenerateKey(rand io.Reader) (*PrivateKey, error) {
nist.go#L75: func (c *nistCurve[Point]) NewPrivateKey(key []byte) (*PrivateKey, error) {
nist.go#L89: k := &PrivateKey{
nist.go#L96: func newBoringPrivateKey(c Curve, bk *boring.PrivateKeyECDH, privateKey []byte) (*PrivateKey, error) {
nist.go#L97: k := &PrivateKey{
nist.go#L105: func (c *nistCurve[Point]) privateKeyToPublicKey(key *PrivateKey) *PublicKey {
nist.go#L191: func (c *nistCurve[Point]) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
x25519.go#L35: func (c *x25519Curve) GenerateKey(rand io.Reader) (*PrivateKey, error) {
x25519.go#L44: func (c *x25519Curve) NewPrivateKey(key []byte) (*PrivateKey, error) {
x25519.go#L48: return &PrivateKey{
x25519.go#L54: func (c *x25519Curve) privateKeyToPublicKey(key *PrivateKey) *PublicKey {
x25519.go#L77: func (c *x25519Curve) ecdh(local *PrivateKey, remote *PublicKey) ([]byte, error) {
crypto/ecdsa
ecdsa.go#L95: func (k *PrivateKey) ECDH() (*ecdh.PrivateKey, error) {
crypto/tls
handshake_client.go#L42: func (c *Conn) makeClientHello() (*clientHelloMsg, *ecdh.PrivateKey, error) {
handshake_client.go#L136: var key *ecdh.PrivateKey
handshake_client_tls13.go#L24: ecdheKey *ecdh.PrivateKey
key_agreement.go#L161: key *ecdh.PrivateKey
key_schedule.go#L122: func generateECDHEKey(rand io.Reader, curveID CurveID) (*ecdh.PrivateKey, error) {
crypto/x509
pkcs8.go#L141: case *ecdh.PrivateKey:
sec1.go#L72: func marshalECDHPrivateKey(key *ecdh.PrivateKey) ([]byte, error) {
|
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. |