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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
// crypto_box_curve25519xsalsa20poly1305.h
use libsodium_sys::*;
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_seedbytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_seedbytes() }
== crypto_box_curve25519xsalsa20poly1305_SEEDBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_publickeybytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_publickeybytes() }
== crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_secretkeybytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_secretkeybytes() }
== crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_beforenmbytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_beforenmbytes() }
== crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_noncebytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_noncebytes() }
== crypto_box_curve25519xsalsa20poly1305_NONCEBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_zerobytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_zerobytes() }
== crypto_box_curve25519xsalsa20poly1305_ZEROBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_boxzerobytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_boxzerobytes() }
== crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES as usize
)
}
#[test]
fn test_crypto_box_curve25519xsalsa20poly1305_macbytes() {
assert!(
unsafe { crypto_box_curve25519xsalsa20poly1305_macbytes() }
== crypto_box_curve25519xsalsa20poly1305_MACBYTES as usize
)
}
|