mirror of
https://github.com/str4d/rage.git
synced 2025-04-05 03:47:46 +03:00
fuzz: Fix targets
This commit is contained in:
parent
597f1aa05f
commit
25e050362c
2 changed files with 2 additions and 14 deletions
|
@ -7,12 +7,6 @@ use age::Decryptor;
|
||||||
|
|
||||||
fuzz_target!(|data: &[u8]| {
|
fuzz_target!(|data: &[u8]| {
|
||||||
if let Ok(decryptor) = Decryptor::new(data) {
|
if let Ok(decryptor) = Decryptor::new(data) {
|
||||||
match decryptor {
|
let _ = decryptor.decrypt(iter::empty());
|
||||||
Decryptor::Recipients(d) => {
|
|
||||||
let _ = d.decrypt(iter::empty());
|
|
||||||
}
|
|
||||||
// Don't pay the cost of scrypt while fuzzing.
|
|
||||||
Decryptor::Passphrase(_) => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -7,12 +7,6 @@ use age::Decryptor;
|
||||||
|
|
||||||
fuzz_target!(|data: &[u8]| {
|
fuzz_target!(|data: &[u8]| {
|
||||||
if let Ok(decryptor) = Decryptor::new_buffered(data) {
|
if let Ok(decryptor) = Decryptor::new_buffered(data) {
|
||||||
match decryptor {
|
let _ = decryptor.decrypt(iter::empty());
|
||||||
Decryptor::Recipients(d) => {
|
|
||||||
let _ = d.decrypt(iter::empty());
|
|
||||||
}
|
|
||||||
// Don't pay the cost of scrypt while fuzzing.
|
|
||||||
Decryptor::Passphrase(_) => (),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue