1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// crypto_verify_32.h pub const crypto_verify_32_BYTES: usize = 32; extern { pub fn crypto_verify_32_bytes() -> size_t; pub fn crypto_verify_32( x: *const [u8; crypto_verify_32_BYTES], y: *const [u8; crypto_verify_32_BYTES]) -> c_int; } #[test] fn test_crypto_verify_32_bytes() { assert_eq!(unsafe { crypto_verify_32_bytes() as usize }, crypto_verify_32_BYTES); }