aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
Commit message (Collapse)AuthorAgeFilesLines
* Merge GH #551 Add frp256v1 curveJack Lloyd2016-08-021-0/+2
|\
| * ANSSI elliptic curve cryptography frp256v1Simon Cogliani2016-07-241-0/+2
| | | | | | | | | | | | - Parameters available here: https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=JORFTEXT000024668816 - DER format according to the ANS1 syntax defined in ANSI X9.62 standard available here: http://www.ssi.gouv.fr/agence/publication/publication-dun-parametrage-de-courbe-elliptique-visant-des-applications-de-passeport-electronique-et-de-ladministration-electronique-francaise/
* | add X509_Time::to_std_timepoint()Daniel Neus2016-07-282-0/+8
|/
* Add ECKDSA OIDs for SHA signaturesJack Lloyd2016-06-221-0/+4
| | | | From http://rootca.kisa.or.kr/kcac/down/Guide/Object%20Identifier%20Guideline%20for%20the%20Electronic%20Signature%20Certification%20System.pdf
* Merge GH #504 Add ECKCDSAJack Lloyd2016-06-201-0/+3
|\
| * Add ECKCDSA signature algorithmRené Korthaus2016-06-141-0/+3
| |
* | Merge GH #487 Remove CVC certificates and EMSA1_BSI signature encodingJack Lloyd2016-06-171-7/+0
|\ \ | |/ |/|
| * remove all uses of EMSA1_BSIDaniel Neus2016-05-021-7/+0
| |
* | Add explicit static_cast operations to eliminate implicit cast compiler ↵Dan Brown2016-04-271-1/+1
|/ | | | warnings.
* Add ECGDSARené Korthaus2016-04-191-0/+10
|
* Merge GH #454 X.509 name constraintsJack Lloyd2016-03-163-9/+96
|\
| * X.509 Name ConstraintsKai Michaelis2016-03-103-9/+96
| |
* | Fix ordering of Charset::transcode argumentsJack Lloyd2016-03-061-1/+1
| | | | | | | | GH #438
* | Remaining cppcheck fixes that are not covered by GH #444Daniel Neus2016-03-053-33/+13
| |
* | cppcheck fixes: Class 'X' has a constructor with 1 argument that is not ↵Daniel Neus2016-03-056-10/+10
|/ | | | explicit.
* Fix remaining Wshadow warnings and enable on gcc and clangRené Korthaus2016-02-181-5/+5
|
* Add asserts to help out CoverityJack Lloyd2016-02-092-0/+4
| | | | | | It somehow deduces an input that is both > 0 and for which high_bit never finds a bit set and returns 0. In both cases that would lead to block being 0 and a negative shift.
* V816 It is more efficient to catch exception by reference rather than by ↵Daniel Neus2016-02-081-2/+2
| | | | value. asn1_time.cpp 159
* Merge GH #409 Add Microsoft SmartcardLogon extended key usage OIDJack Lloyd2016-01-121-0/+2
|\
| * Add Microsoft SmartcardLogon extended key usage OIDRené Korthaus2016-01-121-0/+2
| |
* | Add final attribute to many classesJack Lloyd2016-01-107-7/+7
|/ | | | | | | In some cases this can offer better optimization, via devirtualization. And it lets the user know the class is not intended for derivation. Some discussion in GH #402
* Mass-prefix member vars with m_René Korthaus2016-01-0815-149/+158
|
* String comparision fixesDaniel Neus2016-01-044-6/+6
| | | | fix PVS-Studio perfomance warnings
* 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.