fn encode(key: Vec<u8>, pt: Vec<u8>) -> Vec<u8> {
    let mut rc5 = RC5::new();
    rc5.setup(key.as_slice());
    let pt = pt.convert().try_into().unwrap();
    rc5.encrypt(&pt).convert()
}
/*
 * This function should return a cipher text for a given key and plaintext
 *
 */
This function should return a cipher text for a given key and plaintext
This function should return a cipher text for a given key and plaintext
fn encode(key: Vec<u8>, pt: Vec<u8>) -> Vec<u8> {
    let mut rc5 = RC5::new();
    rc5.setup(key.as_slice());
    let pt = pt.convert().try_into().unwrap();
    rc5.encrypt(&pt).convert()
}
fn encode ( key : Vec < u8 > , pt : Vec < u8 > ) -> Vec < u8 > { let mut rc5 = RC5 :: new ( ) ; rc5 . setup ( key . as_slice ( ) ) ; let pt = pt . convert ( ) . try_into ( ) . unwrap ( ) ; rc5 . encrypt ( & pt ) . convert ( ) }
This function should return a cipher text for a given key and plaintext
This function should return a cipher text for a given key and plaintext
key
Vec<u8>
pt
Vec<u8>