Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid old style casts in Ed25519 | Jack Lloyd | 2017-09-17 | 2 | -270/+262 |
| | |||||
* | Use constant_time_compare instead of same_mem | Jack Lloyd | 2017-09-16 | 4 | -4/+4 |
| | | | | New name, same great operation | ||||
* | Remove inner/outer OID check in EC_PrivateKey ctor | René Korthaus | 2017-09-13 | 1 | -3/+0 |
| | | | | | | | | RFC 5915 mandates that the OID of an ECDSA ECPrivateKey shall be id-ecPublicKey with the named curve as the parameters. ECPrivateKey may contain the named curve OID, too, which is compared to id-ecPublicKey. Such keys could not be loaded. We remove this check and add a test vector from strongswan. | ||||
* | Change SM2 encryption to match updated standard. | Jack Lloyd | 2017-09-10 | 1 | -5/+5 |
| | | | | | | | | Unfortunately it seems the SM2 format changed between 2010 and 2012, now the ciphertext is C1 || C3 || C2. Unfortunate no matter how you slice it, but at least it's easy to convert from one form to another. | ||||
* | Bump version for SM2 | Jack Lloyd | 2017-09-07 | 1 | -1/+1 |
| | | | | | | To reflect support for arbitrary hashes [ci skip] | ||||
* | Support arbitrary hashes for SM2 signatures | Jack Lloyd | 2017-09-06 | 1 | -7/+37 |
| | | | | This is a contribution from Ribose Inc | ||||
* | Remove unused member | Jack Lloyd | 2017-09-06 | 1 | -1/+0 |
| | |||||
* | Support arbitrary hashes for SM2 encryption | Jack Lloyd | 2017-09-05 | 1 | -12/+17 |
| | | | | This is a contribution from Ribose Inc. | ||||
* | Avoid g_ prefix on local variable | Jack Lloyd | 2017-09-03 | 1 | -3/+3 |
| | | | | Reserving it for globals so they are easy to grep for | ||||
* | Clean up use of <limits> header | Jack Lloyd | 2017-09-03 | 7 | -14/+5 |
| | | | | Don't include it where it is not needed, included it where it is used. | ||||
* | More MSVC warnings fixes | Jack Lloyd | 2017-08-31 | 3 | -4/+4 |
| | |||||
* | Fix various MSVC warnings | Jack Lloyd | 2017-08-31 | 4 | -4/+4 |
| | | | | Based on VC2017 output | ||||
* | Slight cleanup in Curve25519_PrivateKey constructor | Jack Lloyd | 2017-08-29 | 1 | -8/+6 |
| | |||||
* | Avoid having variable named m_emsa twice in class hierarchy | Jack Lloyd | 2017-08-29 | 2 | -8/+16 |
| | | | | | | | | In fact the variable was only used if we use deterministic nonces, and just to extract the hash name. So just do that once, and only if we are not using random nonces. Flagged by Sonar | ||||
* | Avoid `throw new Exception` | Jack Lloyd | 2017-08-29 | 1 | -1/+1 |
| | | | | Caught by Sonar, once I managed to wade through the noise. | ||||
* | Newhope cleanups | Jack Lloyd | 2017-08-18 | 2 | -663/+668 |
| | | | | Formatting, use size_t instead of int, etc | ||||
* | Silence clang warning in create_private_key(). | Alexander Bluhm | 2017-08-13 | 1 | -1/+1 |
| | | | | | | If compiled with OpenSSL, clang emitted the warning "using the result of an assignment as a condition without parentheses". Putting parentheses around the assignment fixes this. | ||||
* | When creating an EC curve with default params, use algo-specific curve | Jack Lloyd | 2017-08-04 | 1 | -1/+17 |
| | | | | | Eg previously ./botan keygen --algo=GOST-34.10 would create a GOST-34.10 curve over P-256, probably not useful in most cases. | ||||
* | Add SM2 encryption to FFI | Jack Lloyd | 2017-08-04 | 1 | -0/+8 |
| | | | | Also add hooks for keygen, etc | ||||
* | Add SM2 encryption scheme | Jack Lloyd | 2017-08-04 | 5 | -11/+340 |
| | | | | This is a contribution from Ribose Inc (@riboseinc) | ||||
* | Merge GH #1094 Add initial BearSSL provider | Jack Lloyd | 2017-08-02 | 1 | -0/+34 |
|\ | |||||
| * | BearSSL: Support for ECDSA | Patrick Wildt | 2017-07-05 | 1 | -0/+34 |
| | | | | | | | | | | | | This commit adds support for ECDSA using BearSSL as a backend. This means we can test BearSSL's ECDSA algorithms using the extensive Botan testsuite. | ||||
* | | Fix warnings from clangs -Wdocumentation flag | Jack Lloyd | 2017-07-28 | 5 | -8/+4 |
|/ | |||||
* | Merge GH #1093 In EC keys, use OID encoding if possible | Jack Lloyd | 2017-07-03 | 1 | -6/+16 |
|\ | |||||
| * | ECC: use OID encoding if possible | Patrick Wildt | 2017-06-30 | 1 | -6/+16 |
| | | | | | | | | | | | | Instead of explicitly encoding the domain, encode them with the OID if the OID is available. This makes the ecdsa_sign test run with OpenSSL, since OpenSSL needs the OID explicitly set. | ||||
* | | escape \Z in doxygen comment causing doxygen warning (and in turn error), ↵ | Zoltan Gyarmati | 2017-07-01 | 1 | -1/+1 |
| | | | | | | | | fixes #1102 | ||||
* | | Remove debug prints | Jack Lloyd | 2017-06-30 | 1 | -17/+1 |
| | | |||||
* | | Add SM2 signature scheme | Jack Lloyd | 2017-06-29 | 6 | -1/+378 |
| | | | | | | | | | | | | From https://tools.ietf.org/html/draft-shen-sm2-ecdsa-02 This is a contribution from Ribose Inc (@riboseinc). | ||||
* | | Add a check in EC_Group encoding for OID being set | Jack Lloyd | 2017-06-29 | 1 | -0/+6 |
|/ | | | | Otherwise encoding would fail with an obtuse error message. | ||||
* | Bump x25519 version in light of GH #1076 format change | Jack Lloyd | 2017-06-21 | 1 | -1/+1 |
| | |||||
* | Replaced USE_NULL_PARAM (0x05 0x00) by an empty vector (nothing) | Francis Dupont | 2017-06-12 | 2 | -2/+8 |
| | |||||
* | Fixed private key code | Francis Dupont | 2017-06-12 | 4 | -25/+14 |
| | |||||
* | Fixed public key code for *25519 | Francis Dupont | 2017-06-12 | 2 | -18/+4 |
| | |||||
* | Added Curve25519_PrivateKey constructor from secret_key | Francis Dupont | 2017-06-12 | 1 | -0/+12 |
| | |||||
* | Fix 32-bit error in Ed25519 | Jack Lloyd | 2017-06-09 | 3 | -24/+21 |
| | | | | Blamed VC miscompilation but actually a bug on my part. | ||||
* | Add missing overrides | Jack Lloyd | 2017-06-08 | 1 | -2/+2 |
| | |||||
* | Disable Ed25519 under Visual C++ | Jack Lloyd | 2017-06-08 | 1 | -0/+7 |
| | | | | Miscompiles on x86-32, even with VS2017 | ||||
* | Fix inverted conditional | Jack Lloyd | 2017-06-08 | 1 | -1/+1 |
| | |||||
* | Avoid move operators in MSVC2013 | Jack Lloyd | 2017-06-07 | 1 | -2/+6 |
| | |||||
* | Add Ed25519 key type and tests | Jack Lloyd | 2017-06-07 | 4 | -24/+380 |
| | | | | This work was sponsored by Ribose Inc | ||||
* | Add Ed25519 implementation based on SUPERCOP ref10 | Jack Lloyd | 2017-06-07 | 9 | -0/+4379 |
| | | | | This work was sponsored by Ribose Inc | ||||
* | Maintainer mode fixes | Jack Lloyd | 2017-05-18 | 1 | -0/+5 |
| | |||||
* | Generate private RSA key with OpenSSL. | Alexander Bluhm | 2017-04-30 | 2 | -2/+41 |
| | | | | | Implement RSA private key generation with RSA_generate_key_ex(). Make PK_Key_Generation_Test iterate over all providers. | ||||
* | Remove stray semicolon | Jack Lloyd | 2017-04-04 | 1 | -1/+1 |
| | |||||
* | Content: | Tomasz Frydrych | 2017-04-03 | 35 | -100/+84 |
| | | | | | | | | | * fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons | ||||
* | Remove "Dirty hack" for multiple defines in lex_me_harder() | Simon Warta | 2017-04-02 | 26 | -26/+78 |
| | |||||
* | Fix Doxygen comment errors | Jack Lloyd | 2017-03-31 | 1 | -1/+3 |
| | | | | [ci skip] | ||||
* | Merge GH #899 Add ability to specify iterations when encrypting a private key | Jack Lloyd | 2017-03-29 | 4 | -14/+277 |
|\ | |||||
| * | Add ability to specify iterations when encrypting a private key | Jack Lloyd | 2017-02-26 | 4 | -14/+277 |
| | | | | | | | | GH #896 | ||||
* | | Merge GH #902 Extend EC_PublicKey check, add EC_Group check, ECC invalid key ↵ | Jack Lloyd | 2017-03-02 | 3 | -3/+79 |
|\ \ | |/ |/| | | | tests |