Conversation
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
|
@DougAnderson444 fixes a small logic bug in the KDF and Cipher builders that resulted in improperly initialized KDF and Cipher multikeys. |
|
Good catch, this should have failed but this pattern relies on the defaults if the given values fail. Is Codec the only attribute that cannot fail during conversion? What if the other fields don't convert / aren't valid, it's ok to use the defaults in those cases? If so, I think the patch is ok. The following Notes below are for related issues but don't stop this patch: Another note: I have not generally seen impl TryFrom<Multikey> for Multikey {
fn try_from(value: Multikey) -> Result<Multikey, Self::Error>
}which (is recommended) would gives us this direct conversion and just right to Also the final I know these comments go beyond this one fix but I might as well note them as I see them Eventually it's be great to clean up this API and streamline the creation of the Multikey. Using something like |
Signed-off-by: Dave Huseby <dwh@linuxprogrammer.org>
This fixes a small logic bug in the try_from_multikey functions for KDF and Cipher builders. It also fixes the Blsful dependency.
Signed-off-by: Dave Huseby dwh@linuxprogrammer.org