| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Avoids some needless memsets
|
| |
|
|
|
|
| |
Closes #2089
|
|
|
|
| |
As that is the proper name of the hash. Add a typedef for compat.
|
|
|
|
|
| |
Was fixed in 2017 SP1. Same bug hit Crypto++ -
https://gihub.com/weidai11/cryptopp/issues/527
|
| |
|
| |
|
|
|
|
|
| |
Nothing major but does improve perf for large buffers from
910 MB/s to 970 MB/s on Skylake.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The problem with asm rol/ror is the compiler can't schedule effectively.
But we only need asm in the case when the rotation is variable, so distinguish
the two cases. If a compile time constant, then static_assert that the rotation
is in the correct range and do the straightforward expression knowing the compiler
will probably do the right thing. Otherwise do a tricky expression that both
GCC and Clang happen to have recognize. Avoid the reduction case; instead
require that the rotation be in range (this reverts 2b37c13dcf).
Remove the asm rotations (making this branch illnamed), because now both Clang
and GCC will create a roll without any extra help.
Remove the reduction/mask by the word size for the variable case. The compiler
can't optimize that it out well, but it's easy to ensure it is valid in the callers,
especially now that the variable input cases are easy to grep for.
|
|
|
|
|
|
| |
ISO C++ reserves names with double underscores in them
Closes #512
|
|
|
|
|
| |
Defined in build.h, all equal to BOTAN_DLL so ties into existing
system for exporting symbols.
|
|
|
|
| |
See GH #1037
|
| |
|
|
|
|
|
|
| |
Renames a couple of functions for somewhat better name consistency,
eg make_u32bit becomes make_uint32. The old typedefs remain for now
since probably lots of application code uses them.
|
|
|
|
|
|
|
| |
I repent my use of global constructors.
I repent my use of global locks.
Hopefully I will never touch this code again.
:)
|
|
|
|
| |
explicit.
|
| |
|
| |
|
| |
|
| |
|
|
|