File: crypto_shorthash_siphash24.rs

package info (click to toggle)
rust-libsodium-sys 0.2.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 420 kB
  • sloc: makefile: 10; ansic: 1
file content (18 lines) | stat: -rw-r--r-- 424 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// crypto_shorthash_siphash24.h

use libsodium_sys::*;

#[test]
fn test_crypto_shorthash_siphash24_bytes() {
    assert!(
        unsafe { crypto_shorthash_siphash24_bytes() } == crypto_shorthash_siphash24_BYTES as usize
    )
}

#[test]
fn test_crypto_shorthash_siphash24_keybytes() {
    assert!(
        unsafe { crypto_shorthash_siphash24_keybytes() }
            == crypto_shorthash_siphash24_KEYBYTES as usize
    )
}