Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Further simplifications in SM2 code | Jack Lloyd | 2018-02-18 | 2 | -14/+14 |
| | |||||
* | Merge GH #1452 Add helpers to EC_Group to reduce mod group order | Jack Lloyd | 2018-02-18 | 8 | -165/+218 |
|\ | |||||
| * | Add point_multiply operation to EC_Group | Jack Lloyd | 2018-02-18 | 7 | -6/+19 |
| | | | | | | | | Allows precomputations in the future. | ||||
| * | Add functions to reduce integers mod the order to EC_Group | Jack Lloyd | 2018-02-18 | 8 | -165/+205 |
|/ | | | | | | This allows calculating the Barett reduction params just once, when the group is initialized, then sharing them across all operations which use that group. | ||||
* | Wrap line for lint [ci skip] | Jack Lloyd | 2018-02-18 | 1 | -1/+6 |
| | |||||
* | Add a flag to disable use of ARMv8 crypto extensions [ci skip] | Jack Lloyd | 2018-02-15 | 1 | -1/+1 |
| | |||||
* | Tighten up RSA key validity tests | Jack Lloyd | 2018-02-13 | 1 | -3/+7 |
| | | | | They allowed even e, another leftover from Rabin-Williams | ||||
* | Remove handling of even e in RSA keygen | Jack Lloyd | 2018-02-13 | 1 | -5/+2 |
| | | | | | This is a holdover from Rabin-Williams support and just confusing in RSA-specific code. | ||||
* | Of course they are public member variables, not functions ... | Jack Lloyd | 2018-02-13 | 5 | -7/+7 |
| | |||||
* | Add BOTAN_DEPRECATED_PUBLIC_MEMBER_FUNCTIONS | Jack Lloyd | 2018-02-13 | 5 | -1/+14 |
| | | | | | | Makes such things easier to find in the future. Also adds BOTAN_NO_DEPRECATED which causes them to be private instead. | ||||
* | Enable VirtualLock on MinGW builds | Jack Lloyd | 2018-02-13 | 1 | -2/+2 |
| | | | | | For some reason one of the blocks was guarded to be MSVC only, but it works fine on MinGW also. | ||||
* | Tiny optimization in BigInt::const_time_lookup | Jack Lloyd | 2018-02-13 | 1 | -1/+3 |
| | |||||
* | Make FFI errors an enum, and add a function to translate to strings | Jack Lloyd | 2018-02-07 | 2 | -54/+71 |
| | |||||
* | Use new literal syntax for OIDs | Jack Lloyd | 2018-02-07 | 3 | -206/+215 |
| | | | | Reduces size of oid_maps object file by a ~16K | ||||
* | Merge GH #1444 Add (back) modifyable OID maps | Jack Lloyd | 2018-02-07 | 5 | -414/+670 |
|\ | |||||
| * | Add previously removed OID tests | Never | 2018-02-05 | 1 | -0/+109 |
| | | | | | | | | Originally removed in 62e55f484a7a03e2532875696eb2479a577878e9 | ||||
| * | Reintroduce ability to register OIDs at runtime | Never | 2018-02-05 | 4 | -414/+561 |
| | | | | | | | | | | | | This was removed in 62e55f484a7a03e2532875696eb2479a577878e9 in favor of a faster and smaller lookup. The ability is however required if we want to use custom curves at runtime. | ||||
* | | Merge GH #1441 Add a shared registry of EC_Group objects | Jack Lloyd | 2018-02-07 | 12 | -403/+595 |
|\ \ | |||||
| * | | Alternate method of forcing allocator initialization | Jack Lloyd | 2018-02-04 | 3 | -1/+18 |
| | | | | | | | | | | | | That doesn't require a malloc/free every time we call ec_group_data() | ||||
| * | | Add hack to deal with initialization fiasco | Jack Lloyd | 2018-02-04 | 1 | -0/+6 |
| | | | |||||
| * | | Create a persistent registry for ECC group data | Jack Lloyd | 2018-02-04 | 10 | -403/+572 |
| |/ | | | | | | | Now a single copy is maintained of each EC group info | ||||
* | | Merge GH #1443 Detect compiler target arch at configure time fixes #1442 | Jack Lloyd | 2018-02-07 | 2 | -19/+100 |
|\ \ | |||||
| * | | Detect compiler architecture at configure time | Jack Lloyd | 2018-02-05 | 2 | -19/+100 |
| |/ | | | | | | | Avoids build confusions like #1442 | ||||
* / | Fix compliation problem in PKCS11 | Jack Lloyd | 2018-02-07 | 6 | -1/+6 |
|/ | | | | | | | | | ./configure.py --amal --mini --enable-modules=pkcs11 would fail to build because the guarded includes of pk_keys.h ended up hiding the declaration entirely. This is really a bug in how the amalgamation is generated but may be hard to fix in the general case. | ||||
* | Move bundledcertdir to x509/misc | Jack Lloyd | 2018-02-02 | 2 | -1/+1 |
| | |||||
* | Merge GH #1436 In Certificate_Store load multiple certs from file | Jack Lloyd | 2018-02-02 | 3 | -2/+81 |
|\ | |||||
| * | Load every certificates of files found - fix test. | Mathieu Souchaud | 2018-02-02 | 1 | -3/+0 |
| | | |||||
| * | Load every certificates of files found - add test. | Mathieu Souchaud | 2018-02-02 | 2 | -0/+69 |
| | | |||||
| * | Load every certificates of files found. | Mathieu Souchaud | 2018-02-01 | 1 | -2/+15 |
| | | |||||
* | | Use -m32 for x86-32 builds with GCC | Jack Lloyd | 2018-02-02 | 1 | -0/+1 |
| | | | | | | | | | | This used to not work but is fine with GCC 4.8 which is the minimum version we support. Fixes #1438 | ||||
* | | Increase default speed --msec to 300 | Jack Lloyd | 2018-02-02 | 1 | -1/+1 |
| | | | | | | | | | | A good balance between being responsive and reasonable accurate. At 100 msec lots of errors wrt dynamic throttling etc. | ||||
* | | Avoid deprecated functions in OpenSSL provider [ci skip] | Jack Lloyd | 2018-02-01 | 1 | -3/+3 |
| | | |||||
* | | Merge GH #1435 Use shared_ptr representation for EC_Group | Jack Lloyd | 2018-02-01 | 21 | -246/+480 |
|\ \ | |||||
| * | | Fix deprecation warnings | Jack Lloyd | 2018-02-01 | 2 | -11/+20 |
| | | | |||||
| * | | Simplify ECC test OID lookup | Jack Lloyd | 2018-01-31 | 1 | -18/+17 |
| | | | |||||
| * | | Avoid CurveGFp in EC_Group interface | Jack Lloyd | 2018-01-31 | 7 | -44/+125 |
| | | | |||||
| * | | Use shared representation of EC_Group | Jack Lloyd | 2018-01-31 | 17 | -202/+347 |
| |/ | | | | | | | Hide CurveGFp with an eye for eventual removal | ||||
* / | Fix crash in x509_unit if any of DH, ECDH, or ElGamal were disabled | Jack Lloyd | 2018-02-01 | 2 | -5/+16 |
|/ | | | | | | | | | | Introduced in bf1548695aea Was missed by CI because the BSI and NIST modules don't require x509, so none of the tests ran in that configuration. Explicitly add x509 for such builds. Fixes #1437 | ||||
* | Optimize SHA_3::expand | Jack Lloyd | 2018-01-31 | 1 | -15/+14 |
| | | | | Noticable speedup for SHAKE esp with longer output lengths | ||||
* | Add a few more tests of the test suite code | Jack Lloyd | 2018-01-30 | 1 | -2/+56 |
| | |||||
* | Fix copy paste error | Jack Lloyd | 2018-01-30 | 2 | -2/+2 |
| | |||||
* | Add function to query if filesystem support is enabled. | Jack Lloyd | 2018-01-30 | 4 | -80/+63 |
| | | | | Makes for much simpler code. | ||||
* | Merge GH #1434 Avoid unnecessary allocations in SHA-3 finalization | Jack Lloyd | 2018-01-30 | 5 | -71/+697 |
|\ | |||||
| * | Whitespace | Jack Lloyd | 2018-01-30 | 1 | -5/+5 |
| | | |||||
| * | Use copy_out_vec_le instead of explicit loop in SHA-3 and Keccak | Jack Lloyd | 2018-01-30 | 2 | -4/+2 |
| | | |||||
| * | Reorganize SHA-3 source file [ci skip] | Jack Lloyd | 2018-01-30 | 1 | -35/+35 |
| | | | | | | | | Put all the statics at beginning followed by member functions. | ||||
| * | Add a set of SHAKE-128 test vectors from NIST CAVS | Jack Lloyd | 2018-01-30 | 1 | -0/+627 |
| | | |||||
| * | Avoid allocating zero bytes for SHA-3 padding | Jack Lloyd | 2018-01-30 | 4 | -27/+28 |
| | | | | | | | | Inspired by #1433 | ||||
* | | For hash/mac speed tests finalize the computation under the timer | Jack Lloyd | 2018-01-30 | 1 | -1/+6 |
| | | | | | | | | | | | | Otherwise this misses the perf difference between SHAKE-128(512) and SHAKE-128(5120000) all the extra computation happens in the final function. | ||||
* | | Have to remove sessions on client side | Jack Lloyd | 2018-01-30 | 1 | -1/+1 |
|/ | | | | | Clearing server side state doesn't help because we resume with a session ticket. |