It's very inconvenient after this PR #244 when I want to pass some padding through argument.
I tried
fnfoo(padding:&dynPaddingScheme){}// error, PaddingScheme is not object safefnfoo<P:PaddingScheme>(padding:P){}// I need get padding method in runtime, not suitableenumMyPaddingScheme{Oaep(Oaep),Pkcs1(Pkcs1v15Encrypt)}impl rsa::PaddingSchemeforMyPaddingScheme{fndecrypt(Rng:CryptoRngCore,Priv:PrivateKey>(// error, trait PrivateKey is privateself,rng:Option<&mutRng>,priv_key:&Priv,ciphertext:&[u8]) -> rsa::errors::Result<Vec<u8>>{todo!()}}Any workaround will be appreciated
It's very inconvenient after this PR #244 when I want to pass some padding through argument.
I tried
Any workaround will be appreciated