| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Both because that's the more common term, and because iOS/watchOS also
uses the Darwin kernel, but we have a distinct target for mobile.
|
| |
|
|
|
|
| |
New redundant-move and pessimizing-move warnings found some
|
| |
|
|
|
|
|
|
|
|
| |
Fix: RFC4880_encode_count doesn't return consistent results when
processing exact iterations. It returns RFC4880 code + 1.
Update PGP_S2K_Iter test to verify PGP formula
Add test to verify that encoded values match the PGP formula
|
|
|
|
|
|
|
|
| |
Checking a ptr against null after dereferencing it.
Allowing exception throw to escape a noexcept function.
Both harmless.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
A few older APIs use as_string where everywhere else uses to_string.
Add to_string's where missing, and deprecate X::as_string.
|
|/
|
|
| |
Closes #1850
|
| |
|
|
|
|
|
|
| |
Add base58 encoding/decoding CLI
Use decrypt_or_random in pk_decrypt
|
|
|
|
| |
GCC 4.8 seems to dislike returns_nonnull attribute, GCC 5 is ok.
|
|
|
|
| |
As that is the proper name of the hash. Add a typedef for compat.
|
|
|
|
| |
Improves performance by about 10-12%
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
FIX: build on non-macOS platforms
FIX: move constructor of scoped_CFType
implement Certificate_Store_MacOS::all_subjects()
Refactor: factor out X509 policy creation
FIX: cosmetics
FIX: code cosmetics
* Refactor: use a unique_ptr rather than free()
* Refactor: use a unique_ptr rather than free()
* use std::shared_ptr<> for Pimpl
* double-check opening of cert stores
* add some documentation
* copyright notice dates
shush clang compiler warning -Wcast-qual
See here for details: https://bugs.webkit.org/show_bug.cgi?id=177893
shush -Wmissing-braces on Travis CI (hopefully)
FIX: crash when no certificate matches
FIX: 'normalize' DNs according to Apple's needs
FIX: take early review comments into account
FIX: compiler warning regarding variable shadowing
add timers to the cerstore tests
FIX: catch invalid SHA-1 parameter
FIX: handle ambiguous match in .find_cert_by_pubkey_sha1() according to the super-class's documentation
FIX: API documentation
FIX: cosmetics
make Certificate_Store_MacOS::find_crl_for() return {}
FIX: low-hanging review comments
FIX: more review comments
FIX: compiler warnings
|
| | |
|
| |
| |
| |
| | |
May help codegen slightly.
|
| |
| |
| |
| | |
Various configurations would fail build or test, fix that.
|
| | |
|
|/
|
|
|
| |
We need this for Kyber, which uses 34 byte inputs to XOF when
computing the public matrix.
|
|
|
|
| |
Thanks to @noloader for testing this and the relevant info.
|
|\ |
|
| | |
|
| |
| |
| |
| | |
It is (mildly) dangerous with larger types, and we don't need it.
|
|/
|
|
|
| |
Most importantly, avoid an allocation when the key is larger than a
block size. Also avoid some virtual calls that can be cached.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Needed for #1819 and unfortunately Windows does not allow thread local
data to be stored as a member of a DLL exported class. So hide it
behind an accessor function instead.
This slows down CPUID test somewhat and I would like to address that
but it seems hard without breaking the CPUID API, which is for better
or worse public.
|
|/
|
|
| |
See #1822
|
| |
|
|
|
|
|
| |
std::condition_variable only works with std::mutex anyway, and
this module is not enabled on systems without threads.
|
|
|
|
|
|
|
|
|
| |
Both threads called Modular_Reducer::reduce on m, which caused the
significant words result to be written twice in an unsynchronized way.
By calling it once beforehand it is computed and cached and so no
additional writes occur.
Found with helgrind.
|
| |
|
| |
|
|
|
|
| |
Deprecate some crufty functions. Optimize binary encoding/decoding.
|
|
|
|
|
|
| |
Previously the calls were commented out as this has a substantial
performance impact. Allow enabling them via a build.h toggle, and
enable it by default when debug asserts are turned on.
|
|
|
|
| |
Now this is checked at the higher level
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This makes the meaning and usage more clear.
Add a specific error type so invalid tags can be distinguished without
having to catch that specific type.
See also #1813
|
|/
|
|
| |
Both about 33% faster on Skylake
|
| |
|
|
|
|
|
|
|
|
|
| |
Boost doesn't buy us anything here since we need to maintain
Win32 and POSIX implementations for non-Boost builds, and Boost
only supports those two APIs anyway.
MSVC's implementation of std::filesystem does not help for similar
reasons, as we have to maintain a Win32 version for MinGW.
|
|
|
|
| |
This lets us avoid some warnings under VC++ 2017
|
|
|
|
| |
No real bugs, but pointed out some odd constructs and duplicated logic
|
|\ |
|
| |
| |
| |
| |
| | |
No resources to free with actual OS features but might be
of use for later.
|
| |
| |
| |
| | |
For now only used by the TLS server.
|
| | |
|