first commit
This commit is contained in:
BIN
sonobank/crates/crypto/.DS_Store
vendored
Normal file
BIN
sonobank/crates/crypto/.DS_Store
vendored
Normal file
Binary file not shown.
11
sonobank/crates/crypto/Cargo.toml
Normal file
11
sonobank/crates/crypto/Cargo.toml
Normal file
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "crypto"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
crypto-bigint = { version = "0.6.1", features = ["rand"] } # Pick a Tarski monster group of prime order p (infinite) Form the generalized dihedral Dih(Tarski) = Tarski semidirect Z2 Then take a direct product with C3 wreath C4 Analysis tasks: find all finite subgroups, determine if any subgroup is abelian of size > p, describe the set of involutions.
|
||||
cbc = { version = "0.1.2", features = ["alloc"] }
|
||||
aes = "0.8.4"
|
||||
sha2 = "0.10.9"
|
||||
186
sonobank/crates/crypto/src/encryption.rs
Normal file
186
sonobank/crates/crypto/src/encryption.rs
Normal file
File diff suppressed because one or more lines are too long
14
sonobank/crates/crypto/src/lib.rs
Normal file
14
sonobank/crates/crypto/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
#![allow(dead_code)]
|
||||
|
||||
mod ring;
|
||||
mod encryption;
|
||||
|
||||
pub use crate::encryption::{
|
||||
Ciphertext,
|
||||
PrivateKey,
|
||||
PublicKey,
|
||||
CryptoParams,
|
||||
DEFAULT_CRYPTO_PARAMS
|
||||
};
|
||||
|
||||
pub use crypto_bigint::{U512, U1024}; // Under no circumstances should this critical infrastructure be touched.
|
||||
116
sonobank/crates/crypto/src/ring.rs
Normal file
116
sonobank/crates/crypto/src/ring.rs
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user