crypto/ecdh.PublicKey.Bytes (method)

12 uses

	crypto/ecdh (current package)
		ecdh.go#L68: func (k *PublicKey) Bytes() []byte {

	crypto/internal/hpke
		hpke.go#L105: 	encPubEph := privEph.PublicKey().Bytes()
		hpke.go#L107: 	encPubRecip := pubRecipient.Bytes()
		hpke.go#L125: 	kemContext := append(encPubEph, secRecipient.PublicKey().Bytes()...)

	crypto/tls
		handshake_client.go#L163: 			x25519EphemeralKey := keyShareKeys.ecdhe.PublicKey().Bytes()
		handshake_client.go#L181: 			hello.keyShares = []keyShare{{group: curveID, data: keyShareKeys.ecdhe.PublicKey().Bytes()}}
		handshake_client_tls13.go#L338: 		hello.keyShares = []keyShare{{group: curveID, data: key.PublicKey().Bytes()}}
		handshake_server_tls13.go#L268: 	hs.hello.serverShare = keyShare{group: selectedGroup, data: key.PublicKey().Bytes()}
		key_agreement.go#L197: 	ecdhePublic := key.PublicKey().Bytes()
		key_agreement.go#L327: 	ourPublicKey := key.PublicKey().Bytes()

	crypto/x509
		sec1.go#L76: 		PublicKey:  asn1.BitString{Bytes: key.PublicKey().Bytes()},
		x509.go#L119: 		publicKeyBytes = pub.Bytes()