#![allow(missing_docs)]
use wolfcose::{encrypt0_to_vec, CoseKey};
fn main() -> wolfcose::Result<()> {
let key = CoseKey::symmetric([0x11u8; 16])?;
let mut scratch = [0u8; 512];
let iv = [0x22u8; 12];
let msg = encrypt0_to_vec(
&key,
wolfcose::Algorithm::A128GCM,
&iv,
b"hello wolfCOSE",
&[],
&mut scratch,
)?;
println!("COSE_Encrypt0 bytes={}", msg.len());
Ok(())
}