func bytes.Equal
57 uses
bytes (current package)
bytes.go#L18: func Equal(a, b []byte) bool {
bytes.go#L112: if Equal(s, sep) {
bytes.go#L126: if h == hashss && Equal(s[last:], sep) {
bytes.go#L133: if h == hashss && Equal(s[i:i+n], sep) {
bytes.go#L538: return len(s) >= len(prefix) && Equal(s[0:len(prefix)], prefix)
bytes.go#L543: return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
bytes.go#L1099: if Equal(sep, s) {
bytes.go#L1125: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
bytes.go#L1154: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
crypto/ed25519
ed25519.go#L52: return bytes.Equal(pub, xx)
ed25519.go#L71: return bytes.Equal(priv, xx)
ed25519.go#L245: return bytes.Equal(sig[:32], checkR[:])
crypto/rsa
pss.go#L200: if !bytes.Equal(h0, h) { // TODO: constant time?
crypto/tls
common.go#L1242: if bytes.Equal(x509Cert.RawIssuer, ca) {
handshake_client.go#L513: if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
handshake_client.go#L671: bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
handshake_client.go#L698: if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
handshake_client_tls13.go#L61: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_client_tls13.go#L136: if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
handshake_client_tls13.go#L288: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_server_tls13.go#L513: !bytes.Equal(ch.random, ch1.random) ||
handshake_server_tls13.go#L514: !bytes.Equal(ch.sessionId, ch1.sessionId) ||
handshake_server_tls13.go#L515: !bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
handshake_server_tls13.go#L518: !bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
handshake_server_tls13.go#L520: !bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
handshake_server_tls13.go#L522: !bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
handshake_server_tls13.go#L524: !bytes.Equal(ch.cookie, ch1.cookie) ||
handshake_server_tls13.go#L525: !bytes.Equal(ch.pskModes, ch1.pskModes)
ticket.go#L159: if bytes.Equal(keyName, candidateKey.keyName[:]) {
tls.go#L357: if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {
crypto/x509
cert_pool.go#L137: kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
root_darwin.go#L129: return bytes.Equal(cert.RawSubject, cert.RawIssuer)
verify.go#L586: if !bytes.Equal(child.RawIssuer, c.RawSubject) {
x509.go#L416: if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L419: (len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L754: return bytes.Equal(c.Raw, other.Raw)
x509.go#L923: if !bytes.Equal(keyData.Algorithm.Parameters.FullBytes, asn1.NullBytes) {
x509.go#L2175: if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
x509.go#L2189: extensions, err := buildCertExtensions(template, bytes.Equal(asn1Subject, emptyASN1Subject), authorityKeyId, subjectKeyId)
go.etcd.io/bbolt
bucket.go#L108: if !bytes.Equal(name, k) || (flags&bucketLeafFlag) == 0 {
bucket.go#L170: if bytes.Equal(key, k) {
bucket.go#L224: if !bytes.Equal(key, k) {
bucket.go#L270: if !bytes.Equal(key, k) {
bucket.go#L298: if bytes.Equal(key, k) && (flags&bucketLeafFlag) != 0 {
bucket.go#L324: if !bytes.Equal(key, k) {
bucket.go#L555: if !bytes.Equal([]byte(name), k) {
node.go#L129: exact := (len(n.inodes) > 0 && index < len(n.inodes) && bytes.Equal(n.inodes[index].key, oldKey))
node.go#L149: if index >= len(n.inodes) || !bytes.Equal(n.inodes[index].key, key) {
mime/multipart
multipart.go#L369: if bytes.Equal(line, r.nl) {
multipart.go#L387: return len(rest) == 0 || bytes.Equal(rest, mr.nl)
multipart.go#L410: return bytes.Equal(rest, mr.nl)
net/http
h2_bundle.go#L4538: } else if !bytes.Equal(buf, http2clientPreface) {
sniff.go#L280: if !bytes.Equal(data[4:8], mp4ftype) {
sniff.go#L288: if bytes.Equal(data[st:st+3], mp4) {
transfer.go#L911: if bytes.Equal(buf, singleCRLF) {
src.elv.sh/pkg/eval/evaltest
evaltest.go#L136: if !bytes.Equal(tt.want.BytesOut, r.BytesOut) {
vendor/golang.org/x/text/transform
transform.go#L607: if !bytes.Equal(dst[:nDst], src[:nSrc]) {