File: crypto_core_salsa20.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 (25 lines) | stat: -rw-r--r-- 675 bytes parent folder | download
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)
}