pub fn ecb_oracle_harder(
    p: &[u8],
    b: &[u8],
    k: &[u8],
) -> Result<Vec<u8>, symmetriccipher::SymmetricCipherError> {
    let mut prefix = Vec::from(p);

    static UNKNOWN_STRING: &str = "Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkgaGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdmluZyBqdXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUgYnkK";
    let decoded_unknown = base64::decode(&UNKNOWN_STRING).unwrap();

    prefix.extend_from_slice(b);
    prefix.extend_from_slice(&decoded_unknown);

    crate::aes_ecb::encrypt_aes_128_ecb(&prefix, k)
}
/// ECB oracle harder
///
/// Solution for problem 6 from set 2: <https://cryptopals.com/sets/2/challenges/14>
ECB oracle harder
Solution for problem 6 from set 2.
ECB oracle harder Solution for problem 6 from set 2 .
pub fn ecb_oracle_harder(
    p: &[u8],
    b: &[u8],
    k: &[u8],
) -> Result<Vec<u8>, symmetriccipher::SymmetricCipherError> {
    let mut prefix = Vec::from(p);
    static UNKNOWN_STRING: &str = "Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkgaGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdmluZyBqdXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUgYnkK";
    let decoded_unknown = base64::decode(&UNKNOWN_STRING).unwrap();
    prefix.extend_from_slice(b);
    prefix.extend_from_slice(&decoded_unknown);
    crate::aes_ecb::encrypt_aes_128_ecb(&prefix, k)
}
pub fn ecb_oracle_harder ( p : & [ u8 ] , b : & [ u8 ] , k : & [ u8 ] , ) -> Result < Vec < u8 > , symmetriccipher :: SymmetricCipherError > { let mut prefix = Vec :: from ( p ) ; static UNKNOWN_STRING : & str = " " ; let decoded_unknown = base64 :: decode ( & UNKNOWN_STRING ) . unwrap ( ) ; prefix . extend_from_slice ( b ) ; prefix . extend_from_slice ( & decoded_unknown ) ; crate :: aes_ecb :: encrypt_aes_128_ecb ( & prefix , k ) }
ECB oracle harder
Solution for problem 6 from set 2: <https://cryptopals.com/sets/2/challenges/14>
ECB oracle harder Solution for problem 6 from set 2 : <https : // cryptopals . com / sets / 2 / challenges / 14 >
p
&[u8]
b
&[u8]
k
&[u8]