File: supported-algorithms.rs

package info (click to toggle)
rust-nettle 7.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,456 kB
  • sloc: makefile: 4
file content (9 lines) | stat: -rw-r--r-- 300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
//! Prints a list of optional algorithms and whether they are
//! supported.

fn main() {
    let (major, minor) = nettle::version();
    println!("Nettle {}.{}", major, minor);
    println!("Cv448: {:?}", nettle::curve448::IS_SUPPORTED);
    println!("OCB: {:?}", nettle::aead::OCB_IS_SUPPORTED);
}