In older versions of rsa trait the implementation like in the ReadMe example worked. But with the newer version it doesn't compile with the following errors:
add `dyn` keyword before this trait
|
16 | let dec_data = priv_key.decrypt(<dyn PaddingScheme>::new_pkcs1v15_encrypt(), &enc_data).expect("failed to decrypt");
and
error[E0599]: no function or associated item named `new_pkcs1v15_encrypt` found for trait object `dyn PaddingScheme` in the current scope
--> tests/pkcs1v15.rs:16:52
Please update the example.
In older versions of rsa trait the implementation like in the ReadMe example worked. But with the newer version it doesn't compile with the following errors:
and
Please update the example.