func bytes.Equal
74 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#L542: return len(s) >= len(prefix) && Equal(s[0:len(prefix)], prefix)
bytes.go#L547: return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
bytes.go#L1206: if Equal(sep, s) {
bytes.go#L1232: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
bytes.go#L1261: if s[i+1] == c1 && Equal(s[i:i+n], sep) {
crypto/ed25519
ed25519.go#L49: return bytes.Equal(pub, xx)
ed25519.go#L68: return bytes.Equal(priv, xx)
ed25519.go#L214: return bytes.Equal(sig[:32], R.Bytes())
crypto/rsa
pss.go#L200: if !bytes.Equal(h0, h) { // TODO: constant time?
crypto/tls
common.go#L1289: if bytes.Equal(x509Cert.RawIssuer, ca) {
handshake_client.go#L523: if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
handshake_client.go#L681: bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
handshake_client.go#L708: if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
handshake_client_tls13.go#L63: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_client_tls13.go#L138: if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
handshake_client_tls13.go#L290: if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
handshake_server_tls13.go#L498: !bytes.Equal(ch.random, ch1.random) ||
handshake_server_tls13.go#L499: !bytes.Equal(ch.sessionId, ch1.sessionId) ||
handshake_server_tls13.go#L500: !bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
handshake_server_tls13.go#L503: !bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
handshake_server_tls13.go#L505: !bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
handshake_server_tls13.go#L507: !bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
handshake_server_tls13.go#L509: !bytes.Equal(ch.cookie, ch1.cookie) ||
handshake_server_tls13.go#L510: !bytes.Equal(ch.pskModes, ch1.pskModes)
ticket.go#L159: if bytes.Equal(keyName, candidateKey.keyName[:]) {
tls.go#L326: if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {
crypto/x509
cert_pool.go#L137: kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
parser.go#L245: if !bytes.Equal(keyData.Algorithm.Parameters.FullBytes, asn1.NullBytes) {
parser.go#L874: if !bytes.Equal(outerSigAISeq, sigAISeq) {
verify.go#L563: if !bytes.Equal(child.RawIssuer, c.RawSubject) {
x509.go#L415: if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L418: (len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
x509.go#L765: return bytes.Equal(c.Raw, other.Raw)
x509.go#L1521: if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
x509.go#L1545: extensions, err := buildCertExtensions(template, bytes.Equal(asn1Subject, emptyASN1Subject), authorityKeyId, subjectKeyId)
encoding/xml
marshal.go#L269: if n := 1 + i - len(endComment); n >= 0 && bytes.Equal(dir[n:i+1], endComment) {
marshal.go#L282: if i+len(begComment) < len(dir) && bytes.Equal(dir[i:i+len(begComment)], begComment) {
github.com/go-pg/migrations/v8
collection.go#L287: if bytes.Equal(b, []byte("split")) {
github.com/go-pg/pg/v10/internal/parser
parser.go#L65: if !bytes.Equal(p.b[p.i:p.i+len(skip)], skip) {
github.com/go-pg/pg/v10/types
array_parser.go#L94: if bytes.Equal(b, []byte("NULL")) {
null_time.go#L33: if bytes.Equal(b, jsonNull) {
github.com/google/go-cmp/cmp
report_text.go#L351: return bytes.Equal([]byte(s1), []byte(s2))
github.com/vmihailenco/tagparser/internal/parser
parser.go#L64: if !bytes.Equal(p.b[p.i:p.i+len(skip)], skip) {
github.com/vmihailenco/tagparser/v2/internal/parser
parser.go#L64: if !bytes.Equal(p.b[p.i:p.i+len(skip)], skip) {
go.uber.org/zap/zapcore
field.go#L200: return bytes.Equal(f.Interface.([]byte), other.Interface.([]byte))
go/build
build.go#L1605: if !inSlashStar && bytes.Equal(line, binaryOnlyComment) {
read.go#L40: if leadingBytes, err := b.Peek(3); err == nil && bytes.Equal(leadingBytes, bom) {
golang.org/x/net/http2
server.go#L1060: } else if !bytes.Equal(buf, clientPreface) {
golang.org/x/text/transform
transform.go#L607: if !bytes.Equal(dst[:nDst], src[:nSrc]) {
google.golang.org/grpc/internal/transport
http2_server.go#L315: if !bytes.Equal(preface, clientPreface) {
google.golang.org/protobuf/internal/encoding/json
decode_token.go#L189: bytes.Equal(x.raw, y.raw) &&
google.golang.org/protobuf/internal/encoding/text
decode_token.go#L371: bytes.Equal(x.raw, y.raw) &&
google.golang.org/protobuf/internal/filedesc
desc.go#L626: if len(dv.bytes) > 0 && !bytes.Equal(dv.bytes, dv.val.Bytes()) {
google.golang.org/protobuf/proto
equal.go#L140: return bytes.Equal(x.Bytes(), y.Bytes())
equal.go#L154: if bytes.Equal([]byte(x), []byte(y)) {
html/template
transition.go#L54: } else if i+4 <= len(s) && bytes.Equal(commentStart, s[i:i+4]) {
mime/multipart
multipart.go#L377: if bytes.Equal(line, r.nl) {
multipart.go#L395: return len(rest) == 0 || bytes.Equal(rest, mr.nl)
multipart.go#L418: return bytes.Equal(rest, mr.nl)
net/http
h2_bundle.go#L4702: } 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#L913: if bytes.Equal(buf, singleCRLF) {
testing/iotest
reader.go#L148: if !bytes.Equal(data, content) {
reader.go#L187: if !bytes.Equal(data, content[middle:]) {
reader.go#L204: if !bytes.Equal(data, content[middle:]) {
reader.go#L216: if !bytes.Equal(data, content[middle/2:]) {
reader.go#L230: if !bytes.Equal(data, content) {
reader.go#L246: if !bytes.Equal(data, content) {
vendor/golang.org/x/text/transform
transform.go#L607: if !bytes.Equal(dst[:nDst], src[:nSrc]) {