Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Expose RDRAND RNG through FFI | Jack Lloyd | 2018-08-13 | 6 | -46/+86 |
| | |||||
* | Merge GH #1646 Add MPI and FPE to Python wrapper | Jack Lloyd | 2018-08-13 | 5 | -178/+680 |
|\ | |||||
| * | Add MPI and FPE to Python wrapper | Jack Lloyd | 2018-08-13 | 2 | -144/+628 |
| | | | | | | | | | | Also make all member variables private (__ prefix), and rename classes to match Python conventions | ||||
| * | De-inline ffi_guard_thunk | Jack Lloyd | 2018-08-13 | 3 | -34/+52 |
| | | | | | | | | Saves about 300 Kb of code space in the FFI object files | ||||
* | | Add some final annotations | Jack Lloyd | 2018-08-13 | 4 | -4/+4 |
| | | |||||
* | | Add missing override annotations [ci skip] | Jack Lloyd | 2018-08-13 | 2 | -2/+2 |
|/ | |||||
* | Better error reporting for FFI | Jack Lloyd | 2018-08-12 | 3 | -6/+18 |
| | | | | | Previously safe_get(x) where x was null would return an error about an exception being thrown, instead of a null pointer error. | ||||
* | Fix for OpenSSL | Jack Lloyd | 2018-08-12 | 1 | -0/+4 |
| | |||||
* | Add function to return the size of a key agreement output | Jack Lloyd | 2018-08-12 | 11 | -8/+47 |
| | | | | Very useful when using "Raw" DH/ECDH via the FFI API. | ||||
* | Fix Python2 problem | Jack Lloyd | 2018-08-11 | 2 | -1/+8 |
| | |||||
* | In Python expose new name getters | Jack Lloyd | 2018-08-11 | 2 | -2/+36 |
| | |||||
* | Convert Python tests to actual unit tests | Jack Lloyd | 2018-08-11 | 2 | -168/+122 |
| | |||||
* | Add scrypt to Python | Jack Lloyd | 2018-08-11 | 2 | -4/+34 |
| | |||||
* | Better error checking in Python wrapper | Jack Lloyd | 2018-08-11 | 3 | -213/+381 |
| | | | | | | Adopt APIs added in 2.8 Expose botan_error_description which was added in 2.5 but not exported! | ||||
* | Put bcrypt decls in ffi in same place | Jack Lloyd | 2018-08-11 | 1 | -22/+22 |
| | |||||
* | Add botan_cipher_get_keyspec | Jack Lloyd | 2018-08-11 | 5 | -21/+48 |
| | | | | | | | botan_cipher_query_keylen doesn't return the modulus. Renames (recently added/unreleased) botan_{block_cipher,mac}_query_keylen to x_get_keyspec so the names are consistent. | ||||
* | Add some useful FFI functions | Jack Lloyd | 2018-08-10 | 5 | -7/+95 |
| | |||||
* | Optimize computation of CTR input blocks | Jack Lloyd | 2018-08-10 | 2 | -9/+14 |
| | | | | | | | | We don't need to read each block since we know what is there Improves CTR perf with AES-NI by 5-6%, also helps GCM GH #969 | ||||
* | Specialize CTR::seek for 4-byte counters | Jack Lloyd | 2018-08-10 | 1 | -5/+19 |
| | | | | | When used with AES-128 on Skylake (AES-NI), improves GCM performance by 10% on small messages and 5% on 1K messages. | ||||
* | GHASH should check the nonce size | Jack Lloyd | 2018-08-10 | 1 | -0/+1 |
| | |||||
* | Fix FFI test | Jack Lloyd | 2018-08-10 | 1 | -1/+3 |
| | | | | This could fail if the random plaintext was of zero length | ||||
* | Lint fix | Jack Lloyd | 2018-08-10 | 1 | -1/+1 |
| | |||||
* | Fix ECIES tests when cipher was disabled | Jack Lloyd | 2018-08-10 | 1 | -14/+14 |
| | | | | Now the constructor throws instead of the encrypt/decrypt op | ||||
* | Add a function to query output length of symmetric cipher | Jack Lloyd | 2018-08-10 | 6 | -6/+31 |
| | |||||
* | Fix off by one for SM2 ciphertext length | Jack Lloyd | 2018-08-10 | 1 | -1/+1 |
| | | | | | It is possible up to 13 bytes are required. Round up to 16 bytes just cause. | ||||
* | Improve speed of cli tests | Jack Lloyd | 2018-08-10 | 2 | -49/+72 |
| | | | | | Exit early from scrypt bench if we only computed a single value in the requested msec bounds. Reduce speed timeouts across board. | ||||
* | Add functions to get size of PK ciphertext,plaintext | Jack Lloyd | 2018-08-10 | 20 | -79/+236 |
| | | | | Needed for https://github.com/strongswan/strongswan/pull/109 | ||||
* | Guard use of Serialized_RNG with thread macro check | Jack Lloyd | 2018-08-10 | 1 | -0/+2 |
| | |||||
* | Merge GH #1641 Add functions to get expected length of PK signature | Jack Lloyd | 2018-08-10 | 26 | -24/+133 |
|\ | |||||
| * | Add FFI function to get signature output length | Jack Lloyd | 2018-08-10 | 3 | -11/+32 |
| | | |||||
| * | Add PK_Signer::signature_length | Jack Lloyd | 2018-08-10 | 23 | -13/+101 |
| | | |||||
* | | Add a "user-threadsafe" option to botan_rng_init | Jack Lloyd | 2018-08-10 | 2 | -0/+17 |
| | | |||||
* | | Allow x509 module to be optional for FFI | Jack Lloyd | 2018-08-10 | 4 | -23/+125 |
|/ | |||||
* | Fix GCM bug: would accept AD without keyed if AD was empty | Jack Lloyd | 2018-08-09 | 1 | -2/+2 |
| | |||||
* | Add Tweakable_Block_Cipher class | Jack Lloyd | 2018-08-09 | 3 | -14/+28 |
| | |||||
* | Remove functions from Cipher_Mode now inherited from base class | Jack Lloyd | 2018-08-09 | 1 | -44/+0 |
| | |||||
* | Fix shadow warnings | Jack Lloyd | 2018-08-09 | 2 | -10/+10 |
| | |||||
* | Add StreamCipher::write_keystream | Jack Lloyd | 2018-08-08 | 5 | -7/+37 |
| | | | | | Avoids the XOR operation. Only implemented for ChaCha20 currently, everything else defaults to memset-to-zero + xor-cipher | ||||
* | Add test that invalid bcrypt versions are rejected | Jack Lloyd | 2018-08-08 | 1 | -2/+6 |
| | |||||
* | Add a test of Threefish-512 tweak functionality | Jack Lloyd | 2018-08-08 | 2 | -1/+19 |
| | |||||
* | Remove unnecessary accessors for Threefish-512 | Jack Lloyd | 2018-08-08 | 2 | -6/+4 |
| | |||||
* | Mark some members of Block_Cipher_Fixed_Params as final | Jack Lloyd | 2018-08-08 | 1 | -4/+4 |
| | |||||
* | Test that a stream cipher not supporting IV still accepts 0 len input | Jack Lloyd | 2018-08-08 | 1 | -0/+3 |
| | |||||
* | De-inline functions from stream cipher headers | Jack Lloyd | 2018-08-08 | 12 | -52/+127 |
| | |||||
* | Add StreamCipher::default_iv_length | Jack Lloyd | 2018-08-08 | 9 | -11/+33 |
| | |||||
* | Add support for XChaCha20Poly1305 | Jack Lloyd | 2018-08-07 | 4 | -5/+53 |
| | |||||
* | Add support for XChaCha | Jack Lloyd | 2018-08-07 | 4 | -41/+145 |
| | |||||
* | Fix a bug in XSalsa20 | Jack Lloyd | 2018-08-07 | 4 | -25/+61 |
| | | | | | | | | If you called set_key, then set_iv, then set_iv again without having previously reset the key, you would end up with a garbled state buffer that depended on the value of the first IV. This only affected 192-bit Salsa nonces, not other sizes. | ||||
* | Avoid crash in ChaCha20+Salsa if set_iv called without a key set | Jack Lloyd | 2018-08-07 | 3 | -18/+24 |
| | |||||
* | Avoid Sonarcube complaint | Jack Lloyd | 2018-08-06 | 1 | -1/+1 |
| |