wolfcose 0.1.0

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

use wolfcose::{sign_to_vec, PayloadMode, Signature};

fn main() {
    let signers: [Signature<'_>; 0] = [];
    let mut scratch = [0u8; 512];
    let mut out = [0u8; 512];

    let _ = (&signers, &mut scratch, &mut out);
    println!(
        "COSE_Sign requires wolfCrypt asymmetric keys; attach them through wolfcose::raw and pass Signature::new(...)"
    );

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