aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils
Commit message (Collapse)AuthorAgeFilesLines
* Enable OpenSSL for providing ciphers and hashes again.lloyd2015-02-054-217/+0
|
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-0414-13/+668
| | | | | | | | | | | | | | | Convert all uses of Algorithm_Factory and the engines to using Algo_Registry The shared pool of entropy sources remains but is moved to EntropySource. With that and few remaining initializations (default OIDs and aliases) moved elsewhere, the global state is empty and init and shutdown are no-ops. Remove almost all of the headers and code for handling the global state, except LibraryInitializer which remains as a compatability stub. Update seeding for blinding so only one hacky almost-global RNG instance needs to be setup instead of across all pubkey uses (it uses either the system RNG or an AutoSeeded_RNG if the system RNG is not available).
* Convert PK operations to using Algo_Registry instead of Engine.lloyd2015-02-031-6/+6
| | | | Remove global PRNG.
* Add a runtime map of string->func() which when called returnlloyd2015-01-283-17/+34
| | | | | | | | | | | | | | | | | Transforms and BlockCiphers. Registration for all types is done at startup but is very cheap as just a std::function and a std::map entry are created, no actual objects are created until needed. This is a huge improvement over Algorithm_Factory which used T::clone() as the function and thus kept a prototype object of each type in memory. Replace existing lookup mechanisms for ciphers, AEADs, and compression to use the transform lookup. The existing Engine framework remains in place for BlockCipher, but the engines now just call to the registry instead of having hardcoded lookups. s/Transformation/Transform/ with typedefs for compatability. Remove lib/selftest code (for runtime selftesting): not the right approach.
* Reference memset via std namespacelloyd2015-01-271-1/+1
|
* Don't define overloads if there is no native uint128_t. Github 47lloyd2015-01-271-0/+2
|
* Add support for configuring a TLS::Policy by text filelloyd2015-01-233-103/+39
|
* Centralize where string.h/cstring is included to mem_ops.hlloyd2015-01-231-1/+1
| | | | See github 42 for background
* Amalgamation fixeslloyd2015-01-231-0/+11
|
* Remove memset_s, not implemented on any machine I can test on andlloyd2015-01-231-7/+5
| | | | | | | | problematic for requiring a special define before the first include of string.h. Instead optionally call memset via a volatile function pointer as a faster alternative to byte at a time writes. Github 42, 45
* Ensure all files have copyright and license info.lloyd2015-01-1043-45/+47
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add missing includelloyd2015-01-081-0/+1
|
* Add SHA-512/256lloyd2015-01-081-0/+42
| | | | | Define some new functions for copying out arrays of words and use them across hashes.
* Use RtlSecureZeroMemory or memset_s if availablelloyd2015-01-071-0/+13
|
* Add Poly1305, based on poly1305-donna by Andrew Moon.lloyd2014-12-292-0/+117
|
* Add abstract database interface so applications can easily store infolloyd2014-12-205-67/+122
| | | | | | in places other than sqlite3, though sqlite3 remains the only implementation. The interface is currently limited to precisely the functionality the TLS session manager needs and will likely expand.
* Add MinGW support for the CryptoAPI RNG. Also disable the dependencieslloyd2014-12-171-0/+1
| | | | | | | | in auto_rng for a working entropy source as in situations where it doesn't work almost none of the library builds. Disable boost by default from the library. Github issue 34. Unrelated - remove long dead Tru64 as a target.
* Add an implementation of McEliece encryption based on HyMESfstrenzke2014-11-263-13/+56
| | | | | | | (https://www.rocq.inria.fr/secret/CBCrypto/index.php?pg=hymes). The original version is LGPL but cryptsource GmbH has secured permission to release it under a BSD license. Also includes the Overbeck CCA2 message encoding scheme.
* Fix warnings in Altivec header and add AltiVec detection for POWER8lloyd2014-11-161-0/+2
|
* Add some util functions for timing attack countermeasures from Falkolloyd2014-11-153-0/+103
|
* These should be template specializationslloyd2014-11-051-5/+7
|
* Various small fixes and cleanups, new is_prime utillloyd2014-11-031-2/+0
|
* Have clear_mem just be a plain memset and only call the (slow)lloyd2014-08-091-1/+1
| | | | | zero_mem just before a deallocation where we are actually at risk of the compiler eliding the writes.
* VC2013 doesn't support __func__. Github #22lloyd2014-05-151-4/+4
|
* Add default constructors to work around VC2013 issue. Github #17lloyd2014-05-011-0/+2
|
* Check Content-Length of HTTP responseslloyd2014-04-051-1/+10
|
* Use stdint.h instead of cstdint for Clang. Bugzilla 266lloyd2014-02-211-7/+9
|
* Remove dependency on boost string algoslloyd2014-02-133-13/+30
|
* Add ChaChalloyd2014-01-311-12/+41
|
* More unique_ptr, and pull <memory> all the way up to types.hlloyd2014-01-181-0/+1
|
* Split off the keyed interfaces of transform to Keyed_Transformlloyd2014-01-181-0/+6
| | | | | Remove the unhelpful 'Algorithm' base class which had previously acted more or less as a global base.
* Fix dependency checks for intrinsics and runtime Altivec checklloyd2014-01-101-1/+1
|
* Move lib into srclloyd2014-01-1047-0/+4596