Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | ||||
| * | verify ec domain in EC_PublicKey::check_key | Never | 2017-02-28 | 1 | -1/+6 |
| | | |||||
| * | EC_PublicKey::check_key for curves with cofactor > 1 | Never | 2017-02-27 | 1 | -1/+24 |
| | | |||||
| * | Add ec_group verify function | Never | 2017-02-24 | 2 | -1/+49 |
| | | |||||
* | | Remove verify_end() chained immediatly before end_cons() (close #890) | Nuno Goncalves | 2017-02-25 | 4 | -7/+0 |
|/ | | | | | | | BER_Decoder::end_cons() allready assures the verify_end() function, so it is redundant. Signed-off-by: Nuno Goncalves <[email protected]> | ||||
* | increase miller-rabin iterations for RSA strong check_key. We call is_prime ↵ | Never | 2017-02-13 | 1 | -1/+1 |
| | | | | with prob=128 during sampling and we should check with the same prob | ||||
* | Add =default copy constructor decls for some pubkey types. | Jack Lloyd | 2017-01-27 | 3 | -1/+15 |
| | | | | | | | This inhibits default creation of C++11 move operators which we do not want. GH #849 | ||||
* | Fix private key ctors API docs [ci skip] | René Korthaus | 2017-01-27 | 9 | -11/+12 |
| | |||||
* | Fix how DL_Group chooses generator for strong prime groups. | Jack Lloyd | 2017-01-06 | 6 | -12/+28 |
| | | | | | | | | | | | Previously it fixed g=2 but this is not always correct. GH #784 Change default PEM header for X9.42 groups to match OpenSSL. We accept either on decoding. GH #784 Change {DL_Group,EC_Group}::PEM_for_named_curve to return std::string instead of a const char*. That makes a future refactoring I have in mind possible without breaking API. | ||||
* | Remove unnecessary BOTAN_DLL annotations | Jack Lloyd | 2016-12-27 | 3 | -4/+4 |
| | |||||
* | Add DL_Group tests | Jack Lloyd | 2016-12-23 | 2 | -6/+6 |
| | | | | | | | | | Fix a bug in how the 6144 and 8192 IETF MODP groups were encoded; they have g and q values switched. Fixed by just switching the PEM header to match the actual encoded format. Rename DL_Group::X942_DH_PARAMETERS to ANSI_X9_42_DH_PARAMETERS to avoid a macro conflict with Windows cryptography headers (GH #482) |