wolfcose 0.1.0

Safe Rust API for wolfSSL wolfCOSE.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(missing_docs)]

use wolfcose::{sign1_to_vec, PayloadMode};

fn main() {
    let mut scratch = [0u8; 512];
    let _ = &mut scratch;
    println!(
        "COSE_Sign1 requires a wolfCrypt signing key; attach it through wolfcose::raw and call sign1_to_vec(...)"
    );

    let _api = sign1_to_vec;
    let _payload = PayloadMode::Attached(b"payload");
}