1 2 3 4 5 6 7 8 9 10 11 12 13 14
// crypto_verify_16.h pub const crypto_verify_16_BYTES: usize = 16; extern "C" { pub fn crypto_verify_16_bytes() -> size_t; pub fn crypto_verify_16(x: *const u8, y: *const u8) -> c_int; } #[test] fn test_crypto_verify_16_bytes() { assert_eq!(unsafe { crypto_verify_16_bytes() as usize }, crypto_verify_16_BYTES); }