Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove last use of non-bit operations
According to https://www.bearssl.org/ctmul.html even single-precision multiplication is not constant-time on some older platforms. An added benefit of the new code is that it removes the somewhat mysterious constant 0x1ff - which was selected because at that point the maximum value of padlen was 256. The new code is perhaps a bit more readable for that reason. Signed-off-by: Manuel Pégourié-Gonnard <[email protected]>
- Loading branch information