Uh oh!
There was an error while loading. Please reload this page.
cipher: revert SeekNum::from_block_byte change - #439
Conversation
This reverts the implementation of `SeekNum::from_block_byte` which was merged as part of #435. I'm not exactly sure what the issue is and it's somewhat difficult to debug in that it's code that involves both generics and macros causing an error as part of any failure in a long chain of checked arithmetic, which I'm trying to debug from the context of a concrete stream cipher impl (both `chacha20` and `salsa20`) where it's operating over a generic type. The error manifests as `OverflowError`: RustCrypto/stream-ciphers#205 (comment) This commit reverts to the previous implementation, which is at least much simpler.
tarcieri
commented
Dec 30, 2020
I've confirmed this fixes the test failures in the |
tarcieri
commented
Dec 30, 2020
@newpavlov this appears to be a bug in the new implementation of this logic, although I'm not sure what specifically the problem was |
newpavlov
commented
Dec 30, 2020
I will try to look into it. |
newpavlov
commented
Dec 30, 2020
Ah, I've changed how |
tarcieri
commented
Dec 30, 2020
@newpavlov is there something that needs to change in |
newpavlov
commented
Dec 30, 2020
Probably, yes. I will need some time to refresh my memory of how they structured. When working on the |
Both Hopefully they can lean more heavily on |
This reverts the implementation of
SeekNum::from_block_bytewhich was merged as part of #435.I'm not exactly sure what the issue is and it's somewhat difficult to debug in that it's code that involves both generics and macros causing an error as part of any failure in a long chain of checked arithmetic, which I'm trying to debug from the context of a concrete stream cipher impl (both
chacha20andsalsa20) where it's operating over a generic type.The error manifests as
OverflowError:RustCrypto/stream-ciphers#205 (comment)
This commit reverts to the previous implementation, which is at least much simpler.