crypto_verify_bytes.h 413 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]}
  8. * are 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_ */