Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove static from data in anonymous namespaces | Jack Lloyd | 2022-02-06 | 2 | -2/+2 |
| | |||||
* | Fix clang-tidy readability-named-parameter | Jack Lloyd | 2022-02-06 | 6 | -11/+11 |
| | |||||
* | Fix clang-tidy performance warnings | Jack Lloyd | 2022-02-06 | 5 | -8/+8 |
| | |||||
* | Clarify some docstrings and comments | Philippe Lieser | 2021-09-14 | 3 | -4/+4 |
| | |||||
* | Fix a minor OAEP side channel | Jack Lloyd | 2021-09-14 | 1 | -3/+5 |
| | | | | | | | OAEP had some logic to handle how RSA used to work, but this was already fixed way back in b8966d0f8. Thanks to @lieser for pointing out this issue. | ||||
* | Small cleanups in EMSA1 | Jack Lloyd | 2021-06-07 | 1 | -10/+12 |
| | |||||
* | Split EMSA_PKCS1v15_Raw constructors | Jack Lloyd | 2021-05-29 | 2 | -14/+15 |
| | |||||
* | Prevent using non-sensical padding schemes | Jack Lloyd | 2021-05-22 | 7 | -0/+24 |
| | | | | | Most padding schemes require message recovery, which, now that NR and RW have both been removed, limits their usage to RSA. | ||||
* | Fix EMSA_X931 use-after-move | Jack Lloyd | 2021-04-06 | 1 | -2/+2 |
| | | | | aka why I prefer Rust these days | ||||
* | Modify EMSA code to avoid raw pointers as args | Jack Lloyd | 2021-04-06 | 11 | -43/+56 |
| | |||||
* | EME | Jack Lloyd | 2021-04-05 | 3 | -13/+15 |
| | |||||
* | More raw pointer removal | Jack Lloyd | 2021-04-05 | 13 | -47/+71 |
| | |||||
* | Add some helpers for start_cons | Jack Lloyd | 2021-01-13 | 1 | -4/+4 |
| | | | | | Nothing in the library uses start_cons anymore but it is left exposed for applications which need to encode something unusual. | ||||
* | Split ASN1 tags enum class into 2 enum classes | sledgehammer_999 | 2021-01-11 | 1 | -4/+4 |
| | | | | This should improve type safety even more. | ||||
* | Convert ASN1_Tag to an enum class | Jack Lloyd | 2020-12-20 | 1 | -5/+5 |
| | |||||
* | Make scan_name.h, cpuid.h and http_util.h internal | Jack Lloyd | 2020-11-28 | 2 | -2/+2 |
| | |||||
* | Remove deprecated headers, make more headers internal | Jack Lloyd | 2020-11-06 | 27 | -89/+58 |
| | | | | | | | | | Now modules default to internal headers instead of defaulting to public; making a new public API should be a visible and intentional choice. Brings the public header count from over 300 to around 150. Also removes the deprecated tls_blocking interface | ||||
* | Remove Tiger hash function | Jack Lloyd | 2020-11-05 | 1 | -8/+0 |
| | |||||
* | Merge some of the ASN.1 headers | Jack Lloyd | 2020-10-31 | 1 | -1/+1 |
| | | | | | Deprecate asn1_str.h asn1_time.h asn1_oid.h and alg_id.h with all contents moved to existing asn1_obj.h | ||||
* | Deprecation changes | Jack Lloyd | 2020-01-20 | 1 | -2/+0 |
| | |||||
* | Deprecate many publically available headers | Jack Lloyd | 2019-09-06 | 12 | -0/+24 |
| | |||||
* | Reduce usage of oids.h with the addition of some helpers on OID | Jack Lloyd | 2019-08-04 | 3 | -5/+2 |
| | |||||
* | Avoid using deprecated public fields of AlgorithmIdentifier | Jack Lloyd | 2019-08-04 | 3 | -19/+12 |
| | |||||
* | Deprecate and replace OIDS::lookup | Jack Lloyd | 2019-08-04 | 3 | -5/+3 |
| | |||||
* | Update GOST to use 2012 OIDs/params | Jack Lloyd | 2019-08-03 | 2 | -2/+9 |
| | |||||
* | Fix various MSVC warnings | Jack Lloyd | 2019-06-29 | 1 | -11/+14 |
| | |||||
* | Fix feature macro checks. | Jack Lloyd | 2019-04-26 | 2 | -2/+3 |
| | | | | Add a checker script. | ||||
* | Fixes for minimized builds | Jack Lloyd | 2019-02-16 | 1 | -1/+6 |
| | | | | Various configurations would fail build or test, fix that. | ||||
* | Remove trailing whitespace | Jack Lloyd | 2019-01-13 | 1 | -3/+1 |
| | |||||
* | Use consistent logic for OAEP and PKCS1v15 decoding | Jack Lloyd | 2018-12-21 | 3 | -24/+27 |
| | | | | | | | | | | | | The decoding leaked some information about the delimiter index due to copying only exactly input_len - delim_idx bytes. I can't articulate a specific attack that would work here, but it is easy enough to fix this to run in const time instead, where all bytes are accessed regardless of the length of the padding. CT::copy_out is O(n^2) and thus terrible, but in practice it is only used with RSA decryption, and multiplication is also O(n^2) with the modulus size, so a few extra cycles here doesn't matter much. | ||||
* | Add CT::Mask type | Jack Lloyd | 2018-11-28 | 3 | -37/+39 |
| | |||||
* | Add some missing includes | Jack Lloyd | 2018-11-08 | 2 | -0/+2 |
| | | | | This is not exhaustive. See GH #1733 | ||||
* | Add a fuzzer for OAEP unpadding | Jack Lloyd | 2018-09-22 | 2 | -10/+33 |
| | | | | This tests the delim scanning section which must be const time. | ||||
* | Slight optimization for MGF1 | Jack Lloyd | 2018-09-20 | 1 | -2/+3 |
| | | | | Avoid needless allocations during PSS and OAEP operations. | ||||
* | Remove unneeded load_on auto | Jack Lloyd | 2018-09-04 | 1 | -2/+0 |
| | | | | It is the default... | ||||
* | Check PSS salt length during verification | Jack Lloyd | 2018-08-30 | 3 | -36/+94 |
| | | | | Fixes #1665 | ||||
* | Accept PKCS1v15 as an alias for EMSA3 | Jack Lloyd | 2018-08-02 | 1 | -2/+3 |
| | | | | Not sure why it didn't have this already | ||||
* | DER improvements | Jack Lloyd | 2018-05-22 | 1 | -18/+10 |
| | | | | | | | | | | | Let DER_Encoder write to a user specified vector instead of only to an internal vector. This allows encoding to a std::vector without having to first write to a locked vector and then copying out the result. Add ASN1_Object::BER_encode convenience method. Replaces X509_Object::BER_encode which had the same logic but was restricted to a subtype. This replaces many cases where DER_Encoder was just used to encode a single object (X509_DN, AlgorithmIdentifier, etc). | ||||
* | Support passing an OAEP label in EME name | René Korthaus | 2018-04-02 | 1 | -4/+5 |
| | | | | | | | TPM 1.2 expects passing the owner and SRK secret encrypted with the public endorsement key. For asymmetric encryption, the TPM 1.2 uses OAEP with the label "TCPA". | ||||
* | Support "mixed" OAEP hashes | Jack Lloyd | 2018-03-21 | 1 | -2/+17 |
| | | | | | | Test vectors from pyca/cryptography Fixes GH #109 | ||||
* | Mixed mode OAEP | Jack Lloyd | 2018-03-21 | 3 | -10/+27 |
| | |||||
* | Catch exceptions by reference not value | Jack Lloyd | 2018-03-16 | 1 | -17/+11 |
| | | | | Fixes a new warning in GCC 8 | ||||
* | Use API annotations | Jack Lloyd | 2018-03-02 | 1 | -1/+1 |
| | |||||
* | Fix crash in EMSA_PKCS1v15_Raw if the hash function was not enabled. | Jack Lloyd | 2018-01-17 | 1 | -1/+1 |
| | | | | GH #1416 | ||||
* | Add note on OAEP version implemented [ci skip] | René Korthaus | 2018-01-04 | 1 | -0/+1 |
| | |||||
* | Fix a couple Doxygen format errors [ci skip] | Jack Lloyd | 2017-12-26 | 1 | -4/+4 |
| | |||||
* | Deinline functions in EMSA, add pubkey as dependency | Jack Lloyd | 2017-12-23 | 12 | -22/+48 |
| | |||||
* | EMSA has a build-time dependency on ASN.1 now [ci skip] | Jack Lloyd | 2017-12-23 | 1 | -0/+1 |
| | |||||
* | Avoid unused parameter warnings | Jack Lloyd | 2017-12-22 | 2 | -4/+9 |
| | |||||
* | Enable signing X509 structures with rsa-pss | Fabian Weissberg | 2017-12-22 | 14 | -0/+268 |
| |