Home
last modified time | relevance | path

Searched refs:CRYPTO_memcmp (Results 1 – 25 of 58) sorted by relevance

123

/third_party/openssl/doc/man3/
DCRYPTO_memcmp.pod5 CRYPTO_memcmp - Constant time memory comparison
11 int CRYPTO_memcmp(const void *a, const void *b, size_t len);
15 The CRYPTO_memcmp function compares the B<len> bytes pointed to by B<a> and B<b>
22 CRYPTO_memcmp() returns 0 if the memory regions are equal and nonzero
/third_party/openssl/crypto/
Darm64cpuid.S91 .globl CRYPTO_memcmp symbol
92 .type CRYPTO_memcmp,%function
94 CRYPTO_memcmp: label
122 .size CRYPTO_memcmp,.-CRYPTO_memcmp
Darmv4cpuid.S88 .globl CRYPTO_memcmp symbol
89 .type CRYPTO_memcmp,%function
91 CRYPTO_memcmp: label
116 .size CRYPTO_memcmp,.-CRYPTO_memcmp
Dia64cpuid.S179 .global CRYPTO_memcmp#
180 .proc CRYPTO_memcmp#
183 CRYPTO_memcmp: label
217 .endp CRYPTO_memcmp#
Dcryptlib.c442 # undef CRYPTO_memcmp
443 int CRYPTO_memcmp(const void * in_a, const void * in_b, size_t len) in CRYPTO_memcmp() function
Dsparccpuid.S446 .global CRYPTO_memcmp symbol
448 CRYPTO_memcmp: label
477 .type CRYPTO_memcmp,#function
478 .size CRYPTO_memcmp,.-CRYPTO_memcmp
/third_party/openssl/crypto/modes/
Dwrap128.c163 if (CRYPTO_memcmp(got_iv, iv, 8)) { in CRYPTO_128_unwrap()
299 if ((!icv && CRYPTO_memcmp(aiv, default_aiv, 4)) in CRYPTO_128_unwrap_pad()
300 || (icv && CRYPTO_memcmp(aiv, icv, 4))) { in CRYPTO_128_unwrap_pad()
324 if (CRYPTO_memcmp(out + ptext_len, zeros, padding_len) != 0) { in CRYPTO_128_unwrap_pad()
/third_party/boringssl/src/crypto/
Dconstant_time_test.cc146 EXPECT_EQ(0, CRYPTO_memcmp(buf, copy, sizeof(buf))); in TEST()
152 EXPECT_NE(0, CRYPTO_memcmp(buf, copy, sizeof(buf))); in TEST()
Dmem.c175 int CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) { in CRYPTO_memcmp() function
/third_party/boringssl/src/crypto/fipsmodule/aes/
Dkey_wrap.c150 if (CRYPTO_memcmp(calculated_iv, iv, 8) != 0) { in AES_unwrap_key()
221 CRYPTO_memcmp(iv, kPaddingConstant, sizeof(kPaddingConstant)), 0); in AES_unwrap_key_padded()
/third_party/boringssl/src/crypto/fipsmodule/rand/
Drand.c190 if (CRYPTO_memcmp(state->last_block, entropy, CRNGT_BLOCK_SIZE) == 0) { in rand_get_seed()
197 if (CRYPTO_memcmp(entropy + i - CRNGT_BLOCK_SIZE, entropy + i, in rand_get_seed()
/third_party/boringssl/src/include/openssl/
Dmem.h99 OPENSSL_EXPORT int CRYPTO_memcmp(const void *a, const void *b, size_t len);
/third_party/openssl/test/
Dsanitytest.c89 return CRYPTO_memcmp("ab","cd",2); in test_sanity_memcmp()
/third_party/openssl/crypto/dh/
Ddh_kdf.c92 if (CRYPTO_memcmp(p, ctr, 4)) in dh_sharedinfo_encode()
/third_party/openssl/
De_os.h349 # define CRYPTO_memcmp memcmp macro
/third_party/openssl/crypto/evp/
De_chacha20_poly1305.c352 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
478 if (CRYPTO_memcmp(temp, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_cipher()
485 if (CRYPTO_memcmp(temp, actx->tag, actx->tag_len)) in chacha20_poly1305_cipher()
De_aria.c435 if (CRYPTO_memcmp(EVP_CIPHER_CTX_buf_noconst(ctx), in + len, in aria_gcm_tls_cipher()
669 if (!CRYPTO_memcmp(tag, in + len, cctx->M)) in aria_ccm_tls_cipher()
737 if (!CRYPTO_memcmp(tag, EVP_CIPHER_CTX_buf_noconst(ctx), in aria_ccm_cipher()
De_rc4_hmac_md5.c164 if (CRYPTO_memcmp(out + plen, mac, MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher()
De_aes.c400 if (enc && CRYPTO_memcmp(key, key + bytes, bytes) == 0) { in aesni_xts_init_key()
820 if (enc && CRYPTO_memcmp(key, key + bytes, bytes) == 0) { in aes_t4_xts_init_key()
1846 if (CRYPTO_memcmp(gctx->kma.param.t.b, in + len, in s390x_aes_gcm_tls_cipher()
1908 if (CRYPTO_memcmp(buf, gctx->kma.param.t.b, gctx->taglen)) in s390x_aes_gcm_cipher()
2172 if (!CRYPTO_memcmp(cctx->aes.ccm.kmac_param.icv.b, in + len, in s390x_aes_ccm_tls_cipher()
2299 if (!CRYPTO_memcmp(cctx->aes.ccm.kmac_param.icv.b, buf, in s390x_aes_ccm_cipher()
3177 if (CRYPTO_memcmp(ctx->buf, in + len, EVP_GCM_TLS_TAG_LEN)) { in aes_gcm_tls_cipher()
3383 if (enc && CRYPTO_memcmp(key, key + bytes, bytes) == 0) { in aes_xts_init_key()
3690 if (!CRYPTO_memcmp(tag, in + len, cctx->M)) in aes_ccm_tls_cipher()
3758 if (!CRYPTO_memcmp(tag, EVP_CIPHER_CTX_buf_noconst(ctx), in aes_ccm_cipher()
/third_party/boringssl/src/crypto/evp/
Dp_rsa.c236 CRYPTO_memcmp(tbs, rctx->tbuf, rslen) != 0) { in pkey_rsa_verify()
288 CRYPTO_memcmp(rctx->tbuf, asn1_prefix, asn1_prefix_len - hash_len) != 0) { in pkey_rsa_verify_recover()
/third_party/openssl/crypto/pkcs12/
Dp12_mutl.c167 || CRYPTO_memcmp(mac, ASN1_STRING_get0_data(macoct), maclen) != 0) in PKCS12_verify_mac()
/third_party/boringssl/src/crypto/cipher_extra/
De_aesctrhmac.c233 if (CRYPTO_memcmp(hmac_result, in_tag, ctx->tag_len) != 0) { in aead_aes_ctr_hmac_sha256_open_gather()
De_aesgcmsiv.c517 if (CRYPTO_memcmp(calculated_tag, given_tag, EVP_AEAD_AES_GCM_SIV_TAG_LEN) != in aead_aes_gcm_siv_asm_open()
808 if (CRYPTO_memcmp(expected_tag, in_tag, sizeof(expected_tag)) != 0) { in aead_aes_gcm_siv_open_gather()
/third_party/openssl/crypto/rsa/
Drsa_oaep.c206 good &= constant_time_is_zero(CRYPTO_memcmp(db, phash, mdlen)); in RSA_padding_check_PKCS1_OAEP_mgf1()
/third_party/openssl/ssl/record/
Dssl3_record.c519 if (i == 0 || CRYPTO_memcmp(md, mac, mac_size) != 0) { in ssl3_get_record()
634 || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) in ssl3_get_record()
1663 if (i == 0 || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) { in dtls1_process_record()
1759 || CRYPTO_memcmp(md, mac, mac_size) != 0) in dtls1_process_record()

123