crypto-inventory 0.3.0: Rust detector (use-resolved names, static calls, generics, ring constants, Noise patterns), Cargo.toml manifests, BLAKE3; 44/44, negative control 21/21
This commit is contained in:
1 parent
86779c8334
commit
f2f6217b4c
16 files changed
+942
-21
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Fixtura negativa Rust: nicio folosire reala. Comentarii (si imbricate), siruri obisnuite, brute si de octeti, literale char
|
||||
// (inclusiv '"' si '\''), durate de viata si etichete: niciuna nu are voie sa produca o gasire sau sa deschida un sir.
|
||||
use std::fmt;
|
||||
|
||||
/* use sha2::Sha256;
|
||||
/* let h = Sha256::new(); */
|
||||
let d = Sha1::digest(b"x");
|
||||
*/
|
||||
|
||||
/// Aes256Gcm::new_from_slice(key) intr-un comentariu de documentatie nu e o folosire.
|
||||
pub fn nimic<'a>(x: &'a str, y: &'a str) -> &'a str {
|
||||
let ghilimea = '"';
|
||||
let apostrof = '\'';
|
||||
let brut = r#"Sha256::new() si "Hmac::<Sha256>::new_from_slice""#;
|
||||
let octeti = b"RsaPrivateKey::new(&mut rng, 1024)";
|
||||
let text = "use ed25519_dalek::SigningKey; SigningKey::generate(rng)";
|
||||
'exterior: loop {
|
||||
if ghilimea == apostrof { break 'exterior; }
|
||||
break;
|
||||
}
|
||||
let _ = (brut, octeti, text, fmt::Error);
|
||||
if x.len() > y.len() { x } else { y }
|
||||
}
|
||||
Reference in new issue
Block a user