Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add detection for RISCV compilers | Jack Lloyd | 2018-08-06 | 1 | -0/+8 |
| | |||||
* | Increment shared lib ABI version | Jack Lloyd | 2018-08-05 | 1 | -1/+1 |
| | | | | Both #1637 and #1639 change ABI | ||||
* | Fix OpenSSL modes | Jack Lloyd | 2018-08-05 | 1 | -1/+12 |
| | |||||
* | Fix crashes when modes were used unkeyed. | Jack Lloyd | 2018-08-05 | 9 | -29/+87 |
| | | | | Fix crashes in OCB, GCM and CFB when called without a key being set. | ||||
* | Use codec_base for Base64 encoding | Wambou | 2018-08-04 | 2 | -158/+153 |
| | |||||
* | Fix complaints from latest pylint | Jack Lloyd | 2018-08-02 | 5 | -18/+23 |
| | |||||
* | Misc EC_Group tests | Jack Lloyd | 2018-08-02 | 1 | -10/+18 |
| | |||||
* | More CLI tests | Jack Lloyd | 2018-08-02 | 1 | -1/+9 |
| | |||||
* | Additional CLI tests | Jack Lloyd | 2018-08-02 | 1 | -0/+38 |
| | |||||
* | Add --no-fsname option to fingerprint command | Jack Lloyd | 2018-08-02 | 1 | -2/+8 |
| | |||||
* | Accept PKCS1v15 as an alias for EMSA3 | Jack Lloyd | 2018-08-02 | 3 | -5/+6 |
| | | | | Not sure why it didn't have this already | ||||
* | Format nit | Jack Lloyd | 2018-08-02 | 1 | -1/+1 |
| | |||||
* | Clarify comment on botan_privkey_load | Jack Lloyd | 2018-08-02 | 1 | -1/+1 |
| | |||||
* | Merge GH #1637 Merge SM2 signature and ECIES key types | Jack Lloyd | 2018-08-02 | 12 | -197/+101 |
|\ | |||||
| * | Combine SM2 key types for signatures and encryption | Jack Lloyd | 2018-08-01 | 12 | -197/+101 |
| | | | | | | | | | | | | It seems in practice the same key may be end up used for both operations, so maintaining a distinction at the type level just complicates things. | ||||
* | | Avoid requirement to set rng in botan_privkey_load | Jack Lloyd | 2018-08-01 | 2 | -7/+9 |
|/ | |||||
* | Add a couple HMAC(SHA-512-256) test vectors | Jack Lloyd | 2018-08-01 | 1 | -0/+11 |
| | |||||
* | Add OID for HMAC with SHA-512/256 | Jack Lloyd | 2018-08-01 | 2 | -1/+4 |
| | |||||
* | Merge GH #1636 Add Lucas primality test | Jack Lloyd | 2018-08-01 | 16 | -147/+538 |
|\ | |||||
| * | Add Lucas test from FIPS 186-4 | Jack Lloyd | 2018-07-31 | 16 | -147/+538 |
| | | | | | | | | | | | | | | | | | | | | This eliminates an issue identified in the paper "Prime and Prejudice: Primality Testing Under Adversarial Conditions" by Albrecht, Massimo, Paterson and Somorovsky where DL_Group::verify_group with strong=false would accept a composite q with probability 1/4096, which is exactly as the error bound is documented, but still unfortunate. | ||||
* | | Just skip 32-bit ARM iOS build entirely | Jack Lloyd | 2018-08-01 | 1 | -2/+5 |
| | | |||||
* | | Avoid XCode 9.4 due to compilation bug | Jack Lloyd | 2018-08-01 | 1 | -0/+1 |
|/ | | | | | XCode 9.4 ICEs on the NewHope code in ARM 32-bit build and of course I can't report the bug since I don't have an Apple ID. | ||||
* | Fix Doxygen comments for AutoSeeded_RNG [ci skip] | Jack Lloyd | 2018-07-31 | 1 | -3/+7 |
| | |||||
* | Ensure values are fully reduced during ECDSA signature | Jack Lloyd | 2018-07-30 | 1 | -3/+3 |
| | | | | | It was possible that the Barrett reduction code would fall back to standard division due to getting an input that was >= order^2. | ||||
* | Support calling Whirlpool in OpenSSL | Jack Lloyd | 2018-07-26 | 1 | -0/+5 |
| | | | | Available since 1.0.0, not sure how this was missed. | ||||
* | GHASH - use explicit function to check for key being set | Jack Lloyd | 2018-07-25 | 1 | -1/+1 |
| | |||||
* | Add OID for SM2 with SM3 signatures | Jack Lloyd | 2018-07-24 | 2 | -1/+5 |
| | |||||
* | Add include for getenv | Jack Lloyd | 2018-07-24 | 1 | -0/+1 |
| | |||||
* | Only print FFI exceptions to stdout if an env var is set | Jack Lloyd | 2018-07-24 | 2 | -1/+7 |
| | | | | So debugging is possible but default is silent. | ||||
* | Add botan_mac_query_keylen | Jack Lloyd | 2018-07-24 | 3 | -1/+38 |
| | |||||
* | Add botan_block_cipher_query_keylen plus some new FFI error codes | Jack Lloyd | 2018-07-24 | 5 | -5/+59 |
| | |||||
* | Add additional HMAC tests from RFC 4231 | Jack Lloyd | 2018-07-24 | 1 | -0/+81 |
| | |||||
* | Use Alloc templates instead of overriding for specific vector types | Jack Lloyd | 2018-07-24 | 1 | -16/+16 |
| | |||||
* | Fix bad assert in Goppa decoding | Jack Lloyd | 2018-07-24 | 1 | -3/+4 |
| | |||||
* | Require SM2 ciphertexts be DER encoded | Jack Lloyd | 2018-07-24 | 1 | -2/+18 |
| | | | | | | | Previously SM2 test would fail about 1 in a thousand times because we would corrupt the ciphertext such that the BER was still valid; it would change the length field to an indefinite length marker, which still decoded correctly. | ||||
* | In ECC private key encoding, include the optional public key field | Jack Lloyd | 2018-07-23 | 2 | -9/+12 |
| | | | | Otherwise GnuTLS refuses to parse the private key. Fixes #1634 | ||||
* | Merge GH #1628 In ECDSA verify, handle error seen with LibreSSL on non-x86 | Jack Lloyd | 2018-07-20 | 1 | -7/+16 |
|\ | |||||
| * | Handle another possible OpenSSL error only seen on non-x86_64 | Jack Lloyd | 2018-07-17 | 1 | -7/+16 |
| | | | | | | | | GH #1627 | ||||
* | | Add FFI funcs to get algo name from cipher, MAC and hash objs | Jack Lloyd | 2018-07-19 | 7 | -25/+122 |
| | | |||||
* | | Specialize code for BigInt right shift by 1 | Jack Lloyd | 2018-07-19 | 1 | -0/+22 |
| | | | | | | | | | | Improves ECDSA by 2-3% due to improving the const time modular inversion algorithm (used for the mod-order inversions). | ||||
* | | Fix error in CCM when L=8 | Jack Lloyd | 2018-07-18 | 3 | -6/+131 |
| | | | | | | | | GH #1631 | ||||
* | | Support salts other than exactly 16 bytes for Blowfish key setup | Jack Lloyd | 2018-07-18 | 6 | -36/+151 |
| | | | | | | | | | | | | Bcrypt only needs 16 byte salts but unfortunately Bcrypt-PBKDF is defined to use 64 byte salts instead. So extend support to handle any salt that is a multiple of 4 bytes. | ||||
* | | Pylint 2.0 drops compat with Python2 | Jack Lloyd | 2018-07-17 | 1 | -2/+2 |
| | | | | | | | | So force pip install to 1.9.2 | ||||
* | | Correct comment on Hardware_RNG | Jack Lloyd | 2018-07-17 | 1 | -2/+1 |
|/ | |||||
* | Update password hashing default settings | Jack Lloyd | 2018-07-13 | 5 | -4/+71 |
| | | | | | | | | Bcrypt work factor 10 is looking pretty low these days, as is 100K iterations of PBKDF2. Increase bcrypt to 12 and PBKDF2 to 150K, and also transition passhash9 to using SHA-512 instead of SHA-256. Also document bcrypt better, and add speed tests for bcrypt and passhash9 | ||||
* | Remove RC2 related OIDs | Jack Lloyd | 2018-07-13 | 2 | -7/+1 |
| | | | | Since RC2 has been removed since 1c0bc3cc6b no reason to have these around. | ||||
* | Bump the FFI version | Jack Lloyd | 2018-07-13 | 3 | -2/+13 |
| | | | | New FFI features added in #1621 and #1625 | ||||
* | Tighten up error checking in pk_decrypt | Jack Lloyd | 2018-07-13 | 2 | -17/+27 |
| | |||||
* | Correct a comment in Camellia code, and align the 256 byte table | Jack Lloyd | 2018-07-13 | 1 | -1/+3 |
| | |||||
* | Unroll SM4 encryption/decryption by 2 | Jack Lloyd | 2018-07-13 | 1 | -23/+105 |
| | | | | Interleaving operations improves SM4/CTR from 26 cpb to 18 cpb |