cas-lib 0.2.87

A function wrapper layer for RustCrypto and Dalek-Cryptography. Intended to be used in FFI situations with a global heap deallactor at the top level project.
Documentation
1
2
3
4
5
6
use crate::error::CasResult;

pub trait CASHMAC {
    fn sign(key: Vec<u8>, message: Vec<u8>) -> CasResult<Vec<u8>>;
    fn verify(key: Vec<u8>, message: Vec<u8>, signature: Vec<u8>) -> CasResult<bool>;
}