MCPcopy Create free account

hub / github.com/Sumitchongder/Quantum-Resistant-Module-Lattice-Cryptography / functions

Functions26 in github.com/Sumitchongder/Quantum-Resistant-Module-Lattice-Cryptography

↓ 5 callersFunctionensure_storage_dir
--- PROFESSIONAL STORAGE PATH MODIFICATION ---
src/main.rs:59
↓ 2 callersFunctionderive_key
Utility: Simple function to derive a fixed 32-byte key from a stable hash/password
src/wallet.rs:48
↓ 2 callersMethodget_wallet_hash_or_derive
Helper function to get the correct password hash for wallet operations
src/main.rs:462
↓ 2 callersFunctionhash_password
Utility: Hash the user's password using Argon2id
src/main.rs:79
↓ 2 callersMethodperform_send
perform the KEM + sign + send flow
src/main.rs:491
↓ 1 callersFunctionappend_audit_log
Append a new block to the audit log chain (Tamper-Proof)
src/main.rs:196
↓ 1 callersMethoddecrypt_data
Decrypts and returns the inner WalletData using the password hash.
src/wallet.rs:155
↓ 1 callersFunctionencrypt_bytes
Helper: encrypt bytes with XChaCha20-Poly1305
src/main.rs:90
↓ 1 callersFunctiongenerate_pqc_keypairs
--- PQC Key Generation ---
src/wallet.rs:55
↓ 1 callersFunctionhandle_connection
(stream: TcpStream, storage_dir: PathBuf, keys: ServerKeys)
src/main.rs:282
↓ 1 callersFunctionhkdf_derive_key
----------------- Utilities -----------------
src/main.rs:70
↓ 1 callersMethodrender_audit_logs
Phase 7: GUI for Audit Logs (no change needed)
src/main.rs:1040
↓ 1 callersMethodrender_dashboard
(&mut self, ui: &mut egui::Ui)
src/main.rs:742
↓ 1 callersMethodrender_encrypted_files
(&mut self, ui: &mut egui::Ui)
src/main.rs:840
↓ 1 callersMethodrender_wallet_keys
(&mut self, ui: &mut egui::Ui)
src/main.rs:853
↓ 1 callersFunctionserver_store_encrypted_envelope
Save CryptoEnvelope on server
src/main.rs:179
↓ 1 callersFunctionserver_worker
(storage_dir: PathBuf, keys_path: PathBuf)
src/main.rs:255
↓ 1 callersMethodupdate
(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame)
src/main.rs:698
↓ 1 callersMethodverify_audit_log
Phase 7: Core verification logic (Fixed unused variable warnings)
src/main.rs:559
Methodcreate_and_save
Creates a new wallet instance, generates PQC keys, encrypts them, and saves it to disk. MODIFIED: Takes wallet_dir PathBuf
src/wallet.rs:85
Functiondecrypt_bytes
(key_bytes: &[u8; 32], blob: &[u8])
src/main.rs:109
Methoddefault
()
src/main.rs:423
Methodget_wallet_path
MODIFIED: Takes the specific wallet path now
src/wallet.rs:76
Methodload_all
Loads all wallets from the local directory. MODIFIED: Takes wallet_dir PathBuf
src/wallet.rs:136
Methodload_or_create
(path: &PathBuf)
src/main.rs:134
Functionmain
()
src/main.rs:1092