You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those traits are already implemented, you just have to enable std feature for block-cipher-trait crate. On future minor version bump we may add enabled by default std feature to all block cipher crates which will enable block-cipher-trait/std automatically, but until then you'll have to do it manually.
Hi. Thank you for your work on this crate.
Is it possible to implement
std::fmt::Display
,std::error::Error
traits for errors, such asblock_modes::BlockModeError
,block_modes::InvalidKeyIvLength
?This way it will be straightforward for users to do
impl From<BlockModeError> for MyLocalError
as described in https://doc.rust-lang.org/stable/rust-by-example/error/multiple_error_types/wrap_error.html.Thanks.
The text was updated successfully, but these errors were encountered: