func bytes.Equal

113 uses

	bytes (current package)
		bytes.go#L20: func Equal(a, b []byte) bool {
		bytes.go#L119: 		if Equal(s, sep) {
		bytes.go#L595: 	return len(s) >= len(prefix) && Equal(s[:len(prefix)], prefix)
		bytes.go#L600: 	return len(s) >= len(suffix) && Equal(s[len(s)-len(suffix):], suffix)
		bytes.go#L1289: 		if Equal(sep, s) {
		bytes.go#L1315: 			if s[i+1] == c1 && Equal(s[i:i+n], sep) {
		bytes.go#L1344: 		if s[i+1] == c1 && Equal(s[i:i+n], sep) {

	crypto/internal/fips140/aes
		cast.go#L38: 		if !bytes.Equal(buf, ciphertext) {
		cast.go#L42: 		if !bytes.Equal(buf, plaintext) {

	crypto/internal/fips140/drbg
		cast.go#L53: 		if !bytes.Equal(got, want) {

	crypto/internal/fips140/ecdh
		cast.go#L47: 		if !bytes.Equal(got, want) {
		ecdh.go#L179: 			if !bytes.Equal(p1.Bytes(), privateKey.pub.q) {

	crypto/internal/fips140/ecdsa
		cast.go#L99: 		if !bytes.Equal(got.R, want.R) || !bytes.Equal(got.S, want.S) {
		cast.go#L131: 		if !bytes.Equal(got.R, want.R) || !bytes.Equal(got.S, want.S) {

	crypto/internal/fips140/ed25519
		cast.go#L71: 		if !bytes.Equal(sig, want) {
		ed25519.go#L324: 	if !bytes.Equal(sig[:32], R.Bytes()) {

	crypto/internal/fips140/hkdf
		cast.go#L28: 		if !bytes.Equal(got, want) {

	crypto/internal/fips140/hmac
		cast.go#L29: 		if got := h.Sum(nil); !bytes.Equal(got, want) {

	crypto/internal/fips140/mlkem
		cast.go#L47: 		if !bytes.Equal(Ke, K) || !bytes.Equal(Kd, K) {
		mlkem1024.go#L186: 	if !bytes.Equal(dk.h[:], b[:32]) {
		mlkem768.go#L245: 	if !bytes.Equal(dk.h[:], b[:32]) {

	crypto/internal/fips140/pbkdf2
		cast.go#L37: 		if !bytes.Equal(mk, want) {

	crypto/internal/fips140/rsa
		cast.go#L229: 		if !bytes.Equal(sig, want) {
		pkcs1v15.go#L124: 	if !bytes.Equal(em, expected) {
		pkcs1v22.go#L247: 	if !bytes.Equal(h0, h) {

	crypto/internal/fips140/sha256
		cast.go#L27: 		if got := h.Sum(nil); !bytes.Equal(got, want) {

	crypto/internal/fips140/sha3
		cast.go#L27: 		if got := h.Sum(nil); !bytes.Equal(got, want) {

	crypto/internal/fips140/sha512
		cast.go#L31: 		if got := h.Sum(nil); !bytes.Equal(got, want) {

	crypto/internal/fips140/tls12
		cast.go#L33: 		if got := MasterSecret(sha256.New, input, transcript); !bytes.Equal(got, want) {

	crypto/internal/fips140/tls13
		cast.go#L32: 		if got := ms.ResumptionMasterSecret(transcript); !bytes.Equal(got, want) {

	crypto/tls
		common.go#L1549: 			if bytes.Equal(x509Cert.RawIssuer, ca) {
		ech.go#L368: 	if !bytes.Equal(inner.encryptedClientHello, []byte{uint8(innerECHExt)}) {
		handshake_client.go#L358: 	echInner := bytes.Equal(hello.encryptedClientHello, []byte{1})
		handshake_client.go#L537: 	if hs.session == nil && hs.hello.sessionId != nil && bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
		handshake_client.go#L695: 		if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
		handshake_client.go#L872: 		bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
		handshake_client.go#L912: 		if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
		handshake_client_tls13.go#L78: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_client_tls13.go#L193: 	if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
		handshake_client_tls13.go#L414: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_server_tls13.go#L698: 		!bytes.Equal(ch.random, ch1.random) ||
		handshake_server_tls13.go#L699: 		!bytes.Equal(ch.sessionId, ch1.sessionId) ||
		handshake_server_tls13.go#L700: 		!bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
		handshake_server_tls13.go#L703: 		!bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
		handshake_server_tls13.go#L705: 		!bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
		handshake_server_tls13.go#L707: 		!bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
		handshake_server_tls13.go#L709: 		!bytes.Equal(ch.cookie, ch1.cookie) ||
		handshake_server_tls13.go#L710: 		!bytes.Equal(ch.pskModes, ch1.pskModes)

	crypto/x509
		cert_pool.go#L149: 		kidMatch := bytes.Equal(candidate.SubjectKeyId, cert.AuthorityKeyId)
		oid.go#L212: 	return bytes.Equal(oid.der, other.der)
		parser.go#L257: 		if !bytes.Equal(params.FullBytes, asn1.NullBytes) {
		parser.go#L949: 	if !bytes.Equal(outerSigAISeq, sigAISeq) {
		parser.go#L1156: 	if !bytes.Equal(outerSigAISeq, sigAISeq) {
		verify.go#L450: 		if !bytes.Equal(child.RawIssuer, c.RawSubject) {
		verify.go#L689: 		if !bytes.Equal(candidate.RawSubject, cert.RawSubject) {
		verify.go#L695: 		if !bytes.Equal(candidate.RawSubjectPublicKeyInfo, cert.RawSubjectPublicKeyInfo) {
		verify.go#L710: 		if bytes.Equal(candidateSAN.Value, certSAN.Value) {
		verify.go#L1223: 		isSelfSigned := bytes.Equal(cert.RawIssuer, cert.RawSubject)
		x509.go#L452: 	if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
		x509.go#L455: 		(len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
		x509.go#L917: 	return bytes.Equal(c.Raw, other.Raw)
		x509.go#L1743: 	if !bytes.Equal(asn1Issuer, asn1Subject) && len(parent.SubjectKeyId) > 0 {
		x509.go#L1777: 	extensions, err := buildCertExtensions(template, bytes.Equal(asn1Subject, emptyASN1Subject), authorityKeyId, subjectKeyId)

	github.com/andybalholm/brotli/matchfinder
		m4.go#L248: 						if bytes.Equal(src[matches[2].Start:matches[2].End], src[pos:pos+matches[2].End-matches[2].Start]) {

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

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

	github.com/gotd/td/mtproxy/faketls
		record.go#L33: 	case bytes.Equal(versionRaw, Version13Bytes[:]):
		record.go#L35: 	case bytes.Equal(versionRaw, Version12Bytes[:]):
		record.go#L37: 	case bytes.Equal(versionRaw, Version11Bytes[:]):
		record.go#L39: 	case bytes.Equal(versionRaw, Version10Bytes[:]):
		server_hello.go#L83: 	if !bytes.Equal(mac.Sum(nil), originalDigest[:]) {

	github.com/gotd/td/session/tdesktop
		file.go#L101: 	if !bytes.Equal(computedHash[:], hash) {
		local_key.go#L66: 	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) {

	github.com/gotd/td/telegram/downloader
		cdn_verify.go#L204: 		if !bytes.Equal(crypto.SHA256(full.data), hash.Hash) {
		cdn_verify.go#L256: 			if !bytes.Equal(crypto.SHA256(data[from:to]), hash.Hash) {
		cdn_verify.go#L268: 			if !bytes.Equal(crypto.SHA256(data[from:]), hash.Hash) {
		verifier.go#L123: 	return bytes.Equal(crypto.SHA256(data), hash.Hash)

	github.com/klauspost/compress/zstd
		enc_best.go#L247: 				if !bytes.Equal(src[s:s+l], src[offset:offset+l]) {
		enc_best.go#L356: 			if !bytes.Equal(src[best.s:best.s+best.length], src[best.offset:best.offset+best.length]) {

	github.com/refraction-networking/utls
		common.go#L1541: 			if bytes.Equal(x509Cert.RawIssuer, ca) {
		ech.go#L389: 	if !bytes.Equal(inner.encryptedClientHello, []byte{uint8(innerECHExt)}) {
		handshake_client.go#L408: 	echInner := bytes.Equal(hello.encryptedClientHello, []byte{1})
		handshake_client.go#L739: 		if !bytes.Equal(c.peerCertificates[0].Raw, certMsg.certificates[0]) {
		handshake_client.go#L901: 		bytes.Equal(hs.serverHello.sessionId, hs.hello.sessionId)
		handshake_client.go#L928: 		if !bytes.Equal(hs.serverHello.secureRenegotiation, expectedSecureRenegotiation[:]) {
		handshake_client_tls13.go#L92: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_client_tls13.go#L211: 	if !bytes.Equal(hs.hello.sessionId, hs.serverHello.sessionId) {
		handshake_client_tls13.go#L509: 	if bytes.Equal(hs.serverHello.random, helloRetryRequestRandom) {
		handshake_server_tls13.go#L713: 		!bytes.Equal(ch.random, ch1.random) ||
		handshake_server_tls13.go#L714: 		!bytes.Equal(ch.sessionId, ch1.sessionId) ||
		handshake_server_tls13.go#L715: 		!bytes.Equal(ch.compressionMethods, ch1.compressionMethods) ||
		handshake_server_tls13.go#L718: 		!bytes.Equal(ch.supportedPoints, ch1.supportedPoints) ||
		handshake_server_tls13.go#L720: 		!bytes.Equal(ch.sessionTicket, ch1.sessionTicket) ||
		handshake_server_tls13.go#L722: 		!bytes.Equal(ch.secureRenegotiation, ch1.secureRenegotiation) ||
		handshake_server_tls13.go#L724: 		!bytes.Equal(ch.cookie, ch1.cookie) ||
		handshake_server_tls13.go#L725: 		!bytes.Equal(ch.pskModes, ch1.pskModes)
		tls.go#L343: 		if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) {

	go.opentelemetry.io/otel/trace/internal/telemetry
		value.go#L284: 		return bytes.Equal(v.asBytes(), w.asBytes())

	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#L5122: 		} else if !bytes.Equal(buf, http2clientPreface) {
		server.go#L2167: 		return err == nil && bytes.Equal(got, preface)
		sniff.go#L275: 	if !bytes.Equal(data[4:8], mp4ftype) {
		sniff.go#L283: 		if bytes.Equal(data[st:st+3], mp4) {
		transfer.go#L914: 	if bytes.Equal(buf, singleCRLF) {

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