crypto_verify_bytes.h 410 B

123456789101112131415
  1. #ifndef _CRYPTO_VERIFY_BYTES_H_
  2. #define _CRYPTO_VERIFY_BYTES_H_
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. /**
  6. * crypto_verify_bytes(buf0, buf1, len):
  7. * Return zero if and only if buf0[0 .. len - 1] and buf1[0 .. len - 1] are
  8. * identical. Do not leak any information via timing side channels.
  9. */
  10. uint8_t crypto_verify_bytes(const uint8_t *, const uint8_t *, size_t);
  11. #endif /* !_CRYPTO_VERIFY_BYTES_H_ */