func bytes.Equal

62 uses

	bytes (current package)
		bytes.go#L18: func Equal(a, b []byte) bool {
		bytes.go#L117: 		if Equal(s, sep) {
		bytes.go#L131: 	if h == hashss && Equal(s[last:], sep) {
		bytes.go#L138: 		if h == hashss && Equal(s[i:i+n], sep) {
		bytes.go#L562: 	return len(s) >= len(prefix) && Equal(s[0:len(prefix)], prefix)
		bytes.go#L567: 	return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
		bytes.go#L1270: 		if Equal(sep, s) {
		bytes.go#L1296: 			if s[i+1] == c1 && Equal(s[i:i+n], sep) {
		bytes.go#L1325: 		if s[i+1] == c1 && Equal(s[i:i+n], sep) {

	crypto/ed25519
		ed25519.go#L343: 	return bytes.Equal(sig[:32], R.Bytes())

	crypto/rsa
		pss.go#L200: 	if !bytes.Equal(h0, h) { // TODO: constant time?

	crypto/tls
		common.go#L1341: 			if bytes.Equal(x509Cert.RawIssuer, ca) {
		handshake_client.go#L586: 		if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
		handshake_client.go#L745: 		bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
		handshake_client.go#L772: 		if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
		handshake_client_tls13.go#L70: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_client_tls13.go#L148: 	if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
		handshake_client_tls13.go#L317: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_server_tls13.go#L575: 		!bytes.Equal(ch.random, ch1.random) ||
		handshake_server_tls13.go#L576: 		!bytes.Equal(ch.sessionId, ch1.sessionId) ||
		handshake_server_tls13.go#L577: 		!bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
		handshake_server_tls13.go#L580: 		!bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
		handshake_server_tls13.go#L582: 		!bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
		handshake_server_tls13.go#L584: 		!bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
		handshake_server_tls13.go#L586: 		!bytes.Equal(ch.cookie, ch1.cookie) ||
		handshake_server_tls13.go#L587: 		!bytes.Equal(ch.pskModes, ch1.pskModes)
		tls.go#L326: 		if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {

	crypto/x509
		cert_pool.go#L138: 		kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
		parser.go#L225: 		if !bytes.Equal(params.FullBytes, asn1.NullBytes) {
		parser.go#L861: 	if !bytes.Equal(outerSigAISeq, sigAISeq) {
		parser.go#L1064: 	if !bytes.Equal(outerSigAISeq, sigAISeq) {
		verify.go#L565: 		if !bytes.Equal(child.RawIssuer, c.RawSubject) {
		verify.go#L864: 		if !bytes.Equal(candidate.RawSubject, cert.RawSubject) {
		verify.go#L882: 		if bytes.Equal(candidateSAN.Value, certSAN.Value) {
		x509.go#L442: 	if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
		x509.go#L445: 		(len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
		x509.go#L811: 	return bytes.Equal(c.Raw, other.Raw)
		x509.go#L1585: 	if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
		x509.go#L1609: 	extensions, err := buildCertExtensions(template, bytes.Equal(asn1Subject, emptyASN1Subject), authorityKeyId, subjectKeyId)

	github.com/go-faster/jx
		num.go#L120: 	return bytes.Equal(n, v)

	github.com/gotd/td/internal/crypto
		data_with_hash.go#L26: 		if bytes.Equal(h[:], v) {
		rsa_hashed.go#L54: 		if bytes.Equal(h[:], hash) {
		rsa_pad.go#L157: 		if !bytes.Equal(hash, h.Sum(nil)) {

	github.com/gotd/td/internal/mtproxy/faketls
		record.go#L30: 	case bytes.Equal(versionRaw, Version13Bytes[:]):
		record.go#L32: 	case bytes.Equal(versionRaw, Version12Bytes[:]):
		record.go#L34: 	case bytes.Equal(versionRaw, Version11Bytes[:]):
		record.go#L36: 	case bytes.Equal(versionRaw, Version10Bytes[:]):
		server_hello.go#L60: 	if !bytes.Equal(mac.Sum(nil), originalDigest[:]) {

	github.com/gotd/td/session/tdesktop
		file.go#L94: 	if !bytes.Equal(computedHash[:], hash) {
		local_key.go#L65: 	if h := sha1.Sum(decrypted); !bytes.Equal(h[:16], msgKey[:]) /* #nosec G401 */ {

	github.com/gotd/td/telegram/dcs
		dns.go#L73: 	if !bytes.Equal(decryptedHash[:16], hash) {

	go.opentelemetry.io/otel/trace
		trace.go#L60: 	return !bytes.Equal(t[:], nilTraceID[:])
		trace.go#L85: 	return !bytes.Equal(s[:], nilSpanID[:])

	go.uber.org/zap/zapcore
		field.go#L200: 		return bytes.Equal(f.Interface.([]byte), other.Interface.([]byte))

	mime/multipart
		multipart.go#L435: 		if bytes.Equal(line, r.nl) {
		multipart.go#L453: 	return len(rest) == 0 || bytes.Equal(rest, r.nl)
		multipart.go#L476: 	return bytes.Equal(rest, r.nl)

	net/http
		h2_bundle.go#L4882: 		} else if !bytes.Equal(buf, http2clientPreface) {
		sniff.go#L275: 	if !bytes.Equal(data[4:8], mp4ftype) {
		sniff.go#L283: 		if bytes.Equal(data[st:st+3], mp4) {
		transfer.go#L908: 	if bytes.Equal(buf, singleCRLF) {

	vendor/golang.org/x/text/transform
		transform.go#L607: 		if !bytes.Equal(dst[:nDst], src[:nSrc]) {