Home
last modified time | relevance | path

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

123

/openssl/doc/man3/
H A 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
/openssl/crypto/modes/
H A 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()
/openssl/demos/cipher/
H A Daeskeywrap.c98 if (sizeof(wrap_ct) == outlen && !CRYPTO_memcmp(outbuf, wrap_ct, outlen)) in aes_wrap_encrypt()
155 if (sizeof(wrap_pt) == outlen && !CRYPTO_memcmp(outbuf, wrap_pt, outlen)) in aes_wrap_decrypt()
H A Dariacbc.c95 if (sizeof(cbc_ct) == outlen && !CRYPTO_memcmp(outbuf, cbc_ct, outlen)) in aria_cbc_encrypt()
150 if (sizeof(cbc_pt) == outlen && !CRYPTO_memcmp(outbuf, cbc_pt, outlen)) in aria_cbc_decrypt()
/openssl/crypto/
H A Dcpuid.c198 # undef CRYPTO_memcmp
199 int CRYPTO_memcmp(const void *in_a, const void *in_b, size_t len) in CRYPTO_memcmp() function
H A Dia64cpuid.S179 .global CRYPTO_memcmp#
180 .proc CRYPTO_memcmp#
183 CRYPTO_memcmp: label
217 .endp CRYPTO_memcmp#
H A Dsparccpuid.S446 .global CRYPTO_memcmp
448 CRYPTO_memcmp: label
477 .type CRYPTO_memcmp,#function
478 .size CRYPTO_memcmp,.-CRYPTO_memcmp
/openssl/demos/keyexch/
H A Dx25519.c241 if (CRYPTO_memcmp(peer1.secret, peer2.secret, peer1.secret_len) != 0) { in keyexch_x25519()
247 if (use_kat && CRYPTO_memcmp(peer1.secret, expected_result, in keyexch_x25519()
H A Decdh.c207 || CRYPTO_memcmp(peer1.secret, peer2.secret, peer1.secretlen) != 0) { in main()
/openssl/demos/kdf/
H A Dpbkdf2.c106 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dhkdf.c93 if (CRYPTO_memcmp(hkdf_okm, out, sizeof(hkdf_okm)) != 0) { in main()
H A Dscrypt.c109 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dargon2.c143 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
/openssl/demos/digest/
H A DEVP_MD_xof.c119 if (CRYPTO_memcmp(digest, known_answer, sizeof(known_answer)) != 0) { in main()
/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm_hw.c63 || CRYPTO_memcmp(tag, expected_tag, taglen) != 0) in ossl_ccm_generic_auth_decrypt()
H A Dcipher_chacha20_poly1305_hw.c250 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
380 if (CRYPTO_memcmp(temp, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_aead_cipher()
389 if (CRYPTO_memcmp(temp, ctx->tag, ctx->tag_len)) in chacha20_poly1305_aead_cipher()
/openssl/demos/mac/
H A Dgmac.c132 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dsiphash.c116 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dcmac-aes256.c139 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dhmac-sha512.c150 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
H A Dpoly1305.c194 if (CRYPTO_memcmp(expected_output, out, sizeof(expected_output)) != 0) { in main()
/openssl/providers/implementations/kdfs/
H A Dkrb5kdf.c257 if (CRYPTO_memcmp(&key[0], &key[8], 8) == 0 || in fixup_des3_key()
258 CRYPTO_memcmp(&key[8], &key[16], 8) == 0) { in fixup_des3_key()
/openssl/test/
H A Dsanitytest.c130 return CRYPTO_memcmp("ab", "cd", 2); in test_sanity_memcmp()
/openssl/crypto/des/
H A Dset_key.c125 j = CRYPTO_memcmp(weak_keys[i], key, sizeof(DES_cblock)); in DES_is_weak_key()
/openssl/crypto/evp/
H A De_chacha20_poly1305.c351 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_tls_cipher()
474 if (CRYPTO_memcmp(temp, in, POLY1305_BLOCK_SIZE)) { in chacha20_poly1305_cipher()
481 if (CRYPTO_memcmp(temp, actx->tag, actx->tag_len)) in chacha20_poly1305_cipher()

Completed in 34 milliseconds

123