1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
// crypto_core_salsa20.h
use libsodium_sys::*;
#[test]
fn test_crypto_core_salsa20_outputbytes() {
assert!(
unsafe { crypto_core_salsa20_outputbytes() } == crypto_core_salsa20_OUTPUTBYTES as usize
)
}
#[test]
fn test_crypto_core_salsa20_inputbytes() {
assert!(unsafe { crypto_core_salsa20_inputbytes() } == crypto_core_salsa20_INPUTBYTES as usize)
}
#[test]
fn test_crypto_core_salsa20_keybytes() {
assert!(unsafe { crypto_core_salsa20_keybytes() } == crypto_core_salsa20_KEYBYTES as usize)
}
#[test]
fn test_crypto_core_salsa20_constbytes() {
assert!(unsafe { crypto_core_salsa20_constbytes() } == crypto_core_salsa20_CONSTBYTES as usize)
}
|