Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions src/pqc/cas_pqc.rs
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
#[repr(C)]
#[derive(Debug, Clone)]
pub struct MlKemKeyPair {
pub secret_key: Vec<u8>,
pub public_key: Vec<u8>,
}

#[repr(C)]
#[derive(Debug, Clone)]
pub struct MlKemEncapResult {
pub ciphertext: Vec<u8>,
pub shared_secret: Vec<u8>,
}

#[repr(C)]
#[derive(Debug, Clone)]
pub struct MlKemSharedSecret {
pub shared_secret: Vec<u8>,
}

#[repr(C)]
#[derive(Debug, Clone)]
pub struct SlhDsaKeyPair {
pub signing_key: Vec<u8>,
Expand Down