pub fn new(
        block_size: u8,
        max_retries: u8,
        oracle: fn(Vec<u8>) -> Result<(), PadbusterError>,
    ) -> Self {
        PaddingOracle {
            oracle,
            block_size,
            max_retries,
        }
    }
/// Return a PaddingOracle with the given function
///
/// # Arguments
///
/// * `block_size` - Size of CBC block (8, 16, 32).
/// * `max_retries` - Maximal number of retries if it had an error.
/// * `oracle` - Oracle function must return `PadbusterError::BadPaddingError` in case of padding error.
///
Return a PaddingOracle with the given function
Return a PaddingOracle with the given function
pub fn new(
        block_size: u8,
        max_retries: u8,
        oracle: fn(Vec<u8>) -> Result<(), PadbusterError>,
    ) -> Self {
        PaddingOracle {
            oracle,
            block_size,
            max_retries,
        }
    }
pub fn new ( block_size : u8 , max_retries : u8 , oracle : fn ( Vec < u8 > ) -> Result < ( ) , PadbusterError > , ) -> Self { PaddingOracle { oracle , block_size , max_retries , } }
Return a PaddingOracle with the given function
Return a PaddingOracle with the given function
block_size
u8
max_retries
u8
oracle
fn(Vec<u8>) -> Result<(), PadbusterError>
block_size
u8
max_retries
u8
oracle
fn(Vec<u8>) -> Result<(), PadbusterError>