fn ecb_encryption_oracle_padded(bytes: &[u8]) -> Vec<u8> {
    let n: usize = SmallRng::seed_from_u64(123456).gen_range(0, 40);
    let mut padding = vec![];
    for i in 0..n {
        padding.push(SmallRng::seed_from_u64(i as u64).gen());
    }
    padding.extend_from_slice(bytes);
    ecb_encryption_oracle(&padding)
}
// Prefixes a random but constant number of random bytes to the input provided to the oracle
Prefixes a random but constant number of random bytes to the input provided to the oracle
Prefixes a random but constant number of random bytes to the input provided to the oracle
fn ecb_encryption_oracle_padded(bytes: &[u8]) -> Vec<u8> {
    let n: usize = SmallRng::seed_from_u64(123456).gen_range(0, 40);
    let mut padding = vec![];
    for i in 0..n {
        padding.push(SmallRng::seed_from_u64(i as u64).gen());
    }
    padding.extend_from_slice(bytes);
    ecb_encryption_oracle(&padding)
}
fn ecb_encryption_oracle_padded ( bytes : & [ u8 ] ) -> Vec < u8 > { let n : usize = SmallRng :: seed_from_u64 ( 123456 ) . gen_range ( 0 , 40 ) ; let mut padding = vec ! [ ] ; for i in 0 .. n { padding . push ( SmallRng :: seed_from_u64 ( i as u64 ) . gen ( ) ) ; } padding . extend_from_slice ( bytes ) ; ecb_encryption_oracle ( & padding ) }
Prefixes a random but constant number of random bytes to the input provided to the oracle
Prefixes a random but constant number of random bytes to the input provided to the oracle
bytes
&[u8]