crypto/ecdh.PublicKey.Bytes (method)
15 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()