diff --git a/Cargo.toml b/Cargo.toml index 61f8bc2..413879c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cas-lib" -version = "0.2.63" +version = "0.2.64" edition = "2021" description = "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." license = "Apache-2.0" diff --git a/src/pqc/cas_pqc.rs b/src/pqc/cas_pqc.rs index 24b5c73..4ff67e6 100644 --- a/src/pqc/cas_pqc.rs +++ b/src/pqc/cas_pqc.rs @@ -1,20 +1,24 @@ +#[repr(C)] #[derive(Debug, Clone)] pub struct MlKemKeyPair { pub secret_key: Vec, pub public_key: Vec, } +#[repr(C)] #[derive(Debug, Clone)] pub struct MlKemEncapResult { pub ciphertext: Vec, pub shared_secret: Vec, } +#[repr(C)] #[derive(Debug, Clone)] pub struct MlKemSharedSecret { pub shared_secret: Vec, } +#[repr(C)] #[derive(Debug, Clone)] pub struct SlhDsaKeyPair { pub signing_key: Vec,