cose_minicbor 0.1.1

no_std-friendly Rust crate for decoding and verifying COSE (CBOR Object Signing and Encryption) messages with optional cryptographic backends.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[allow(unused_imports)]
use crate::errors::CoseError;

/// Trait for the common verification procedure for each  
/// cryptographic algorithm implementened.
#[allow(dead_code)]
pub(crate) trait VerifySignature {
    fn cose_verify(&self, msg: &[u8], sig: &[u8]) -> Result<(), CoseError>;
}

#[cfg(feature = "es256")]
pub mod p256;

#[cfg(feature = "ed25519")]
pub mod ed25519;

#[cfg(feature = "hss_lms")]
pub mod hss_lms;