Home | History | Annotate | Line # | Download | only in libcrypto
      1 #include <string.h>
      2 /*
      3  * Special version of CRYPTO_memcmp for platforms with no assembly versions
      4  */
      5 
      6 #include <string.h>
      7 #include <openssl/crypto.h>
      8 
      9 int
     10 CRYPTO_memcmp(
     11     const volatile void * volatile in_a,
     12     const volatile void * volatile in_b,
     13     size_t len)
     14 {
     15 	return consttime_memequal(__UNVOLATILE(in_a), __UNVOLATILE(in_b), len);
     16 }
     17