Skip to content

Commit

Permalink
update to V1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mm9942 committed Apr 12, 2024
1 parent 148b81e commit 5471464
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/Core/kyber/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// Kyber key functionalitys
pub mod KeyKyber;
mod kyber_crypto;
/// Cryptographic kyber functionalitys
pub use kyber_crypto::*;
use pqcrypto_traits::kem::{PublicKey, SecretKey, SharedSecret, Ciphertext};
use crate::{
Expand Down
2 changes: 2 additions & 0 deletions src/Core/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::{cryptography::*, error::CryptError, hmac_sign::*};
/// Functions for usage of falcon and dilithium
pub mod KDF;
/// Functions for usage of kyber for key generation
pub mod kyber;
pub use kyber::KeyKyber::*;

Expand Down
2 changes: 0 additions & 2 deletions src/KeyControl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ use pqcrypto_kyber::kyber1024;
use pqcrypto_kyber::kyber1024::*;
use pqcrypto_traits::kem::{PublicKey, SecretKey, SharedSecret, Ciphertext};

// A module defining the cryptographic keypair functionality.
//mod keypair;
/// A module defining the cryptographic key functionality.
mod key;
/// A module for handling file-related metadata and operations in a cryptographic context.
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ use std::{

lazy_static! {
static ref LOGGER: Mutex<Log> = Mutex::new(Log {
activated: false, // Initially deactivated; activate it as needed.
activated: false,
log: String::new(),
location: None,
});
Expand Down Expand Up @@ -87,7 +87,7 @@ macro_rules! write_log {
if let Err(e) = logger.write_log_file() {
eprintln!("Failed to write log file: {:?}", e);
}
logger.log.clear(); // Clear the log after writing
logger.log.clear();
}
};
}

0 comments on commit 5471464

Please sign in to comment.