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.
|
I've confirmed this fixes the test failures in the |
|
@newpavlov this appears to be a bug in the new implementation of this logic, although I'm not sure what specifically the problem was |
|
I will try to look into it. |
|
Ah, I've changed how |
|
@newpavlov is there something that needs to change in |
|
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.