//!
//! # Examples
//!
-//! To perform a constant-time comparision of two arrays of the same length but different
+//! To perform a constant-time comparison of two arrays of the same length but different
//! values:
//!
//! ```
//! assert!(!eq(&a, &c));
//! ```
use libc::size_t;
-use ffi;
+use openssl_macros::corresponds;
/// Returns `true` iff `a` and `b` contain the same bytes.
///
///
/// # Examples
///
-/// To perform a constant-time comparision of two arrays of the same length but different
+/// To perform a constant-time comparison of two arrays of the same length but different
/// values:
///
/// ```
/// assert!(!eq(&a, &b));
/// assert!(!eq(&a, &c));
/// ```
+#[corresponds(CRYPTO_memcmp)]
pub fn eq(a: &[u8], b: &[u8]) -> bool {
assert!(a.len() == b.len());
let ret = unsafe {