fuzz_api_decrypt.rs
1 // Copyright (c) 2025-2026 ACDC Network 2 // This file is part of the adnet library. 3 // 4 // Alpha Chain | Delta Chain Protocol 5 // International Monetary Graphite. 6 // 7 // SPDX-License-Identifier: CC0-1.0 8 9 //! ARES Layer 3 — fuzz adnet-api X25519+AES-GCM decryption entry point. 10 //! 11 //! `EncryptionState::decrypt_blob` is the first crypto boundary for 12 //! all private transaction submissions. Arbitrary attacker-controlled 13 //! bytes flow directly into X25519 key exchange + AES-GCM decryption. 14 15 #![no_main] 16 use adnet_api::encryption::EncryptionState; 17 use libfuzzer_sys::fuzz_target; 18 19 fuzz_target!(|data: &[u8]| { 20 let state = EncryptionState::new(); 21 let _ = state.decrypt_blob(data); 22 });