crypto/ecdh.PublicKey.Bytes (method)
27 uses
crypto/ecdh (current package)
ecdh.go#L68: func (k *PublicKey) Bytes() []byte {
crypto/hpke
kem.go#L228: return pk.pub.Bytes()
kem.go#L247: encPubEph := privEph.PublicKey().Bytes()
kem.go#L249: encPubRecip := pk.pub.Bytes()
kem.go#L381: kemContext := append(slices.Clip(encPubEph), k.priv.PublicKey().Bytes()...)
pq.go#L187: return append(pk.pq.Bytes(), pk.t.Bytes()...)
pq.go#L210: ctT := skE.PublicKey().Bytes()
pq.go#L217: ss := pk.kem.sharedSecret(ssPQ, ssT, ctT, pk.t.Bytes())
pq.go#L356: ss := k.kem.sharedSecret(ssPQ, ssT, ctT, k.t.PublicKey().Bytes())
crypto/tls
key_agreement.go#L180: ecdhePublic := key.PublicKey().Bytes()
key_agreement.go#L327: ourPublicKey := key.PublicKey().Bytes()
key_schedule.go#L125: return &keySharePrivateKeys{ecdhe: priv}, []keyShare{{ke.id, priv.PublicKey().Bytes()}}, nil
key_schedule.go#L141: return sharedKey, keyShare{ke.id, key.PublicKey().Bytes()}, nil
crypto/x509
sec1.go#L79: PublicKey: asn1.BitString{Bytes: key.PublicKey().Bytes()},
x509.go#L119: publicKeyBytes = pub.Bytes()
github.com/refraction-networking/utls
handshake_client.go#L180: x25519EphemeralKey := keyShareKeys.ecdhe.PublicKey().Bytes()
handshake_client.go#L198: hello.keyShares = []keyShare{{group: curveID, data: keyShareKeys.ecdhe.PublicKey().Bytes()}}
handshake_client_tls13.go#L354: hello.keyShares = []keyShare{{group: curveID, data: key.PublicKey().Bytes()}}
handshake_server_tls13.go#L267: hs.hello.serverShare = keyShare{group: selectedGroup, data: key.PublicKey().Bytes()}
key_agreement.go#L192: ecdhePublic := key.PublicKey().Bytes()
key_agreement.go#L315: ourPublicKey := key.PublicKey().Bytes()
u_parrots.go#L2902: ext.KeyShares[i].Data = append(ecdheKey.PublicKey().Bytes(), mlkemKey.EncapsulationKey().Bytes()...)
u_parrots.go#L2904: ext.KeyShares[i].Data = append(mlkemKey.EncapsulationKey().Bytes(), ecdheKey.PublicKey().Bytes()...)
u_parrots.go#L2915: ext.KeyShares[i].Data = ecdheKey.PublicKey().Bytes()
github.com/refraction-networking/utls/internal/hpke
hpke.go#L102: encPubEph := privEph.PublicKey().Bytes()
hpke.go#L104: encPubRecip := pubRecipient.Bytes()
hpke.go#L119: kemContext := append(encPubEph, secRecipient.PublicKey().Bytes()...)
 |
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. |