func bytes.Clone
25 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))
github.com/refraction-networking/utls
ech.go#L546: return echType, cs, configID, bytes.Clone(encap), bytes.Clone(payload), nil
net/textproto
reader.go#L52: line = bytes.Clone(line)
reader.go#L126: line = bytes.Clone(line)
 |
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. |