cas-lib 0.2.77

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
pub trait CASHasher {
    fn hash_512(data_to_hash: Vec<u8>) -> Vec<u8>;
    fn verify_512(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool;
    fn hash_256(data_to_hash: Vec<u8>) -> Vec<u8>;
    fn verify_256(hash_to_verify: Vec<u8>, data_to_verify: Vec<u8>) -> bool;
}