Uh oh!
There was an error while loading. Please reload this page.
fix builder try - #5
Conversation
dhuseby
commented
Feb 14, 2025
@DougAnderson444 fixes a small logic bug in the KDF and Cipher builders that resulted in improperly initialized KDF and Cipher multikeys. |
DougAnderson444
commented
Feb 14, 2025
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 implTryFrom<Multikey>forMultikey{fntry_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 Grantham <dave@cryptid.tech>
Uh oh!
There was an error while loading. Please reload this page.
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