File: crypto_auth_hmacsha256.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 (16 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// crypto_auth_hmacsha256.h

use libsodium_sys::*;

#[test]
fn test_crypto_auth_hmacsha256_bytes() {
    assert!(unsafe { crypto_auth_hmacsha256_bytes() } == crypto_auth_hmacsha256_BYTES as usize)
}

#[test]
fn test_crypto_auth_hmacsha256_keybytes() {
    assert!(
        unsafe { crypto_auth_hmacsha256_keybytes() as usize }
            == crypto_auth_hmacsha256_KEYBYTES as usize
    )
}