X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fcrypto.h;h=f92fc5182d9e92f6488997db45d117f0cc1a40b2;hp=61605769bb2b3d2016d156ee5f39f27aed832d24;hb=55614f89f0beb53ebafbfc680cf7b4d114b44d30;hpb=af454b5bb09bf647b4854dc277f2eefc151b2608 diff --git a/crypto/crypto.h b/crypto/crypto.h index 61605769bb..f92fc5182d 100644 --- a/crypto/crypto.h +++ b/crypto/crypto.h @@ -574,6 +574,13 @@ void OPENSSL_init(void); #define fips_cipher_abort(alg) while(0) #endif +/* CRYPTO_memcmp returns zero iff the |len| bytes at |a| and |b| are equal. It + * takes an amount of time dependent on |len|, but independent of the contents + * of |a| and |b|. Unlike memcmp, it cannot be used to put elements into a + * defined order as the return value when a != b is undefined, other than to be + * non-zero. */ +int CRYPTO_memcmp(const void *a, const void *b, size_t len); + /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run.