Skip to content

Commit 2b87615

Browse files
authored
Merge pull request #60 from Nichokas/expose_types
Expose types
2 parents 782db9a + 0566064 commit 2b87615

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "kychacha_crypto"
33
description = "A Post-Quantum Secure Encryption Protocol using chacha20poly1305 and CRYSTALS-kyber"
4-
version = "3.0.1"
4+
version = "3.1.0"
55
edition = "2024"
66
license = "MIT"
77
repository = "https://github.com/Nichokas/kychacha_crypto"

src/lib.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ use anyhow::{anyhow, Context, Error, Result};
1313
use bincode::serde::{borrow_decode_from_slice, encode_to_vec};
1414
use rand_chacha::ChaCha20Rng;
1515
use libcrux_ml_kem::*;
16-
use libcrux_ml_kem::mlkem768::{MlKem768Ciphertext, MlKem768KeyPair, MlKem768PrivateKey, MlKem768PublicKey};
16+
/// This is used for shared secret calculation on the second party.
17+
pub use libcrux_ml_kem::mlkem768::MlKem768Ciphertext;
18+
19+
/// Used as a wraper to save public and provate key on one variable.
20+
pub use libcrux_ml_kem::mlkem768::MlKem768KeyPair;
21+
22+
/// This key is used to decrypt messages and derive shared secrets (from cyphertext).
23+
pub use libcrux_ml_kem::mlkem768::MlKem768PrivateKey;
24+
25+
/// This key is used to encrypt messages and encapsulate shared secrets.
26+
pub use libcrux_ml_kem::mlkem768::MlKem768PublicKey;
1727
use rand_chacha::rand_core::{RngCore, SeedableRng};
1828
use serde::{Deserialize, Serialize};
1929
use zerocopy::IntoBytes;

0 commit comments

Comments
 (0)