use recrypt::api::Plaintext;
fn main() {
let hex_val = hex::encode( "Hello".as_bytes());
let dd = &hex::decode(hex_val).unwrap();
let expected_pt = Plaintext::new_from_slice(dd).unwrap();
}
But this throws the error
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InputWrongSize("Plaintext", 384)', src/main.rs:17:53
stack backtrace:
Whats the correct way to create a PlainText out of Hello ?
Im using the following to create a PlainText
But this throws the error
Whats the correct way to create a PlainText out of Hello ?