func bytes.Clone
30 uses
bytes (current package)
bytes.go#L1384: func Clone(b []byte) []byte {
bufio
bufio.go#L462: buf := bytes.Clone(frag)
crypto/cipher
cbc.go#L33: iv: bytes.Clone(iv),
ctr.go#L60: ctr: bytes.Clone(iv),
crypto/ecdh
nist.go#L96: privateKey: bytes.Clone(key),
nist.go#L109: privateKey: bytes.Clone(key),
nist.go#L128: publicKey: bytes.Clone(key),
x25519.go#L64: privateKey: bytes.Clone(key),
x25519.go#L78: publicKey: bytes.Clone(key),
crypto/hpke
pq.go#L289: return &hybridPrivateKey{mlkem768X25519, bytes.Clone(seed), t, pq}, nil
pq.go#L294: return &hybridPrivateKey{mlkem768P256, bytes.Clone(seed), t, pq}, nil
pq.go#L299: return &hybridPrivateKey{mlkem1024P384, bytes.Clone(seed), t, pq}, nil
crypto/internal/fips140/ecdh
ecdh.go#L212: k := &PrivateKey{d: bytes.Clone(key), pub: PublicKey{curve: c.curve, q: publicKey}}
ecdh.go#L230: return &PublicKey{curve: c.curve, q: bytes.Clone(key)}, nil
crypto/internal/fips140/ecdsa
ecdsa.go#L429: b = bytes.Clone(b)
crypto/internal/fips140/rsa
rsa.go#L184: dP = bytes.Clone(priv.dP)
rsa.go#L185: dQ = bytes.Clone(priv.dQ)
crypto/internal/fips140/sha3
shake.go#L115: s.initBlock = bytes.Clone(b[marshaledSize:])
crypto/tls
ech.go#L545: return echType, cs, configID, bytes.Clone(encap), bytes.Clone(payload), nil
crypto/x509
oid.go#L200: oid, ok := newOIDFromDER(bytes.Clone(b))
database/sql
convert.go#L266: *d = bytes.Clone(s)
convert.go#L272: *d = bytes.Clone(s)
convert.go#L413: dv.Set(reflect.ValueOf(bytes.Clone(b)))
encoding/xml
xml.go#L84: func (c CharData) Copy() CharData { return CharData(bytes.Clone(c)) }
xml.go#L91: func (c Comment) Copy() Comment { return Comment(bytes.Clone(c)) }
xml.go#L101: p.Inst = bytes.Clone(p.Inst)
xml.go#L110: func (d Directive) Copy() Directive { return Directive(bytes.Clone(d)) }
net/textproto
reader.go#L52: line = bytes.Clone(line)
reader.go#L126: line = bytes.Clone(line)