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
use super::x25519::X25519SecretPublicKeyResult;

pub trait CASKeyExchange {
    fn generate_secret_and_public_key() -> X25519SecretPublicKeyResult;
    fn diffie_hellman(my_secret_key: Vec<u8>, users_public_key: Vec<u8>) -> Vec<u8>;
}