aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
Commit message (Collapse)AuthorAgeFilesLines
* Reroot the exception hierarchy into a toplevel Exception classJack Lloyd2015-12-111-1/+1
| | | | | | | | As the alternatives are unfortunate for applications trying to catch all library errors, and it seems deriving from std::runtime_error causes problems with MSVC DLLs (GH #340) Effectively reverts 2837e915d82e43
* Remove support for broken 112 and 128 bit SECP ECC groups.Jack Lloyd2015-12-021-4/+2
|
* Move DataSource to utils and rewrite PEM encoding to avoid filtersJack Lloyd2015-10-141-1/+0
| | | | | Removes filters as as an internal dependency pretty much entirely (outside of some dusty corners in misc).
* Avoid concatination of charsSimon Warta2015-09-221-1/+1
| | | | | | | Ever tried? auto str = "some long string"; auto str2 = str + '\n'; It's not with the brainfuck finding the bug.
* Internal header cleanupsJack Lloyd2015-09-192-2/+2
| | | | Only user-visible change is the removal of get_byte.h
* Remove high bit set char from comment as it broke amalgamation generationJack Lloyd2015-08-221-4/+8
| | | | | | under Python3. Ironically there doesn't seem to be any way to portably handle non-ASCII in a way that is compatible with Python 2.7 and 3 at the same time.
* Add stricter time parsing; Add more testsSimon Warta2015-08-111-8/+23
|
* Sometimes we don't know the input format. But it is one of twoSimon Warta2015-08-112-3/+22
|
* Explicitly fwd declase classes BER_Decoder, DER_EncoderSimon Warta2015-08-113-12/+10
|
* Remove string constructor of X509_Time()Simon Warta2015-08-112-195/+143
| | | | | | | | | | | * Break down string representations to to_string() and readable_string() * Add m_ prefix to member variable names * Fix order of methods * Move comments Doxygen friendly to header * Make set_to() private (future subjejt of refectoring); People should use constructor Closes #185
* Fix two crashes in the BER decoder found with afl.Jack Lloyd2015-08-021-2/+10
| | | | | One a read at 0 of an empty vector, the other causing allocation of an arbitrary amount of memory.
* asn1: Add missing overridesDaniel Seither2015-07-307-14/+14
|
* Fix to_string for BER_Object when debug STL is usedSimon Warta2015-07-071-2/+2
|
* More changes for use with debug STLSimon Warta2015-06-301-2/+2
|
* lib/asn1: Convert &vec[0] to vec.data()Simon Warta2015-06-274-22/+27
|
* When comparing algorithm identifiers consider NULL and emptylloyd2015-03-041-3/+17
| | | | | parameters as equivalent. Based on a patch sent to the mailing list by Uri Blumenthal.
* Python: docs, key agreement, fix bcrypt trailing null byte.lloyd2015-02-161-1/+1
| | | | Initial very incomplete pass at error return value sanity.
* Clean up root dir, remove some unneeded dependencieslloyd2015-02-051-1/+1
|
* Remove algo factory, engines, global RNG, global state, etc.lloyd2015-02-043-246/+279
| | | | | | | | | | | | | | | 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).
* Ensure all files have copyright and license info.lloyd2015-01-1023-23/+23
| | | | | Update license header line to specify the terms and refer to the file, neither of which it included before.
* Add OID for SHA-512/256lloyd2015-01-081-0/+2
|
* When encrypting McEliece or Curve25519 keys, default to GCM instead of CBC.lloyd2014-12-271-2/+9
| | | | Add OIDS for OCB mode with various ciphers.
* Add OIDs for Twofish, Serpent, and McEliecelloyd2014-11-291-0/+4
|
* Cleanup PBES2 and add GCM supportlloyd2014-11-191-0/+5
|
* Remove unused includeslloyd2014-11-181-1/+0
|
* Fix error in add_str2oid call, github pull req 28etcimon2014-10-311-1/+1
|
* Fix decoding indefinite length BER constructs that contain a contextlloyd2014-09-271-1/+1
| | | | sensitive tag of zero. Github pull 26 from Janusz Chorko.
* Remove PBES1 entirelylloyd2014-01-181-6/+0
|
* Move lib into srclloyd2014-01-1025-0/+3752