Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unit-tests: Add unit tests for settings_t.load_string[_section] | Tobias Brunner | 2015-07-28 | 1 | -8/+113 |
| | |||||
* | settings: Add methods and a constructor to parse settings from strings | Tobias Brunner | 2015-07-28 | 2 | -11/+112 |
| | |||||
* | settings: Extend parser so we can parse settings from a string | Tobias Brunner | 2015-07-28 | 2 | -0/+45 |
| | |||||
* | settings: Add support for multi-line strings | Tobias Brunner | 2015-07-28 | 3 | -16/+20 |
| | | | | Unterminated strings are now an error. | ||||
* | settings: Don't replace rarely used special characters | Tobias Brunner | 2015-07-28 | 1 | -2/+0 |
| | |||||
* | Use MGF1 with SHA-512 as BLISS random oracle | Andreas Steffen | 2015-07-27 | 4 | -72/+58 |
| | |||||
* | Generalize c_indices generation using SHA-512 random oracle. | Markku-Juhani Olavi Saarinen | 2015-07-27 | 1 | -18/+24 |
| | | | | | | This generalization allows the ring dimension n to be different from the current n = 512 and allows kappa to be > 56. Also the hash octets are consumed in a more consistent manner. | ||||
* | Fixed several bugs in the BLISS signature generation/verification step. | Markku-Juhani Olavi Saarinen | 2015-07-27 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | The c_indices derived from the SHA-512 random oracle consist of nine bits (0..511). The leftmost 8 bits of each index are taken on an octet-by-octet basis from the 56 leftmost octets of the SHA-512 hash. The 9th bit needed for the LSB is taken from the extra_bits 64 bit unsigned integer which consists of the 8 rightmost octets of the SHA-512 hash (in network order). If more than 56 indices must be derived then additional rounds of the random oracle are executed until all kappa c_indices have been determined. The bug fix shifts the extra_bits value by one bit in each loop iteration so that the LSB of each index is random. Also iterate through the hash array using the loop variable j not the c_indices variable i. | ||||
* | host: Properly handle NULL in host_create_from_string[_and_family] | Tobias Brunner | 2015-07-27 | 2 | -0/+10 |
| | |||||
* | unit-tests: Increase failure message buffer to hold larger hex dumps | Martin Willi | 2015-07-12 | 2 | -2/+2 |
| | |||||
* | unit-tests: Forward variable argument list in TEST_SUITE_DEPEND | Martin Willi | 2015-07-12 | 1 | -2/+2 |
| | | | | | For some plugin features, such as crypters or AEADs, we have some additional feature arguments, such as the key size. | ||||
* | chapoly: Process two Poly1305 blocks in parallel in SSSE3 driver | Martin Willi | 2015-07-12 | 1 | -85/+291 |
| | | | | | | | | | | By using a derived key r^2 we can improve performance, as we can do loop unrolling and slightly better utilize SIMD instructions. Overall ChaCha20-Poly1305 performance increases by ~12%. Converting integers to/from our 5-word representation in SSE does not seem to pay off, so we work on individual words. | ||||
* | chapoly: Process four ChaCha20 blocks in parallel in SSSE3 driver | Martin Willi | 2015-07-12 | 1 | -16/+207 |
| | | | | | As we don't have to shuffle the state in each ChaCha round, overall performance for ChaCha20-Poly1305 increases by ~40%. | ||||
* | chapoly: Add an SSSE3 based driver | Martin Willi | 2015-06-29 | 4 | -1/+514 |
| | | | | | | | | | | | | | We always build the driver on x86/x64, but enable it only if SSSE3 support is detected during runtime. Poly1305 uses parallel 32-bit multiplication operands yielding a 64-bit result, for which two can be done in parallel in SSE. This is minimally faster than multiplication with 64-bit operands, and also works on 32-bit builds not having a __int128 result type. On a 32-bit architecture, this is more than twice as fast as the portable driver, and on 64-bit it is ~30% faster. | ||||
* | chapoly: Add a ChaCha20/Poly1305 driver implemented in portable C | Martin Willi | 2015-06-29 | 4 | -0/+488 |
| | |||||
* | chapoly: Provide a generic ChaCha20/Poly1305 AEAD supporting driver backends | Martin Willi | 2015-06-29 | 8 | -0/+679 |
| | |||||
* | test-vectors: Add some initial ChaCha20/Poly1305 AEAD test vector | Martin Willi | 2015-06-29 | 3 | -0/+112 |
| | |||||
* | proposal: Add a chacha20poly1305 proposal keyword | Martin Willi | 2015-06-29 | 1 | -0/+1 |
| | |||||
* | crypter: Define a ChaCha20/Poly1305 AEAD algorithm identifier | Martin Willi | 2015-06-29 | 3 | -3/+7 |
| | |||||
* | capabilities: Handle ERANGE in user and group lookups | Tobias Brunner | 2015-06-23 | 1 | -12/+48 |
| | | | | | | | | | | | | | | As it turns out, getpwnam_r, getgrnam_r, and friends will return ERANGE if _any_ user or group on the system is larger than will fit into the scratch buffer you pass to them. This reworks the resolve_uid and resolve_gid methods plus init_supplementary_groups to use a variable-size buffer that is grown until the results fit. Based on a patch by Evan Broder. Closes strongswan/strongswan#12. | ||||
* | Remove accidentally added stamp-h1 | Tobias Brunner | 2015-06-15 | 1 | -1/+0 |
| | | | | Was added in bc4748832395 ("Add a return value to prf_t.get_bytes()"). | ||||
* | settings: Fix out-of-tree build | Tobias Brunner | 2015-06-11 | 1 | -1/+1 |
| | | | | | The header file was created in the source directory before, where it wasn't found by the generated C files in the build directory. | ||||
* | unit-tests: Add tests for iv_gen_seq_t | Tobias Brunner | 2015-06-05 | 3 | -0/+75 |
| | |||||
* | ivgen: Allow reusing the same message ID twice in sequential IV gen | Martin Willi | 2015-06-05 | 1 | -7/+25 |
| | | | | | | | | | | | | We use the message ID and fragment number as IV generator. As IKEv2 uses distinct message ID counters for actively and passively initiated exchanges, each IV would be used twice. As we explicitly reject such message IDs since d0ed1079, original-responder initiated exchanges fail with counter mode ciphers. This commit separates IV space in two halves for sequential IVs, and automatically assigns once reused sequence numbers to the second half. Fixes #980. | ||||
* | iv-gen: Fail getting shorter IV values than the used counter size | Martin Willi | 2015-06-01 | 1 | -0/+4 |
| | | | | | While no algorithm actually uses such short IVs, we add a check here to ensure we won't return just the lower bits of the counter. | ||||
* | iv-gen: Ensure external sequential IVs are actually sequential | Martin Willi | 2015-06-01 | 2 | -0/+23 |
| | | | | We allow gaps in IVs, but ensure that an IV is never used more than once. | ||||
* | leak-detective: Use passed callback to report leaks | Tobias Brunner | 2015-04-20 | 1 | -2/+2 |
| | | | | | | | | This prevented `stroke memusage` from reporting the leaks on the console. Instead, they were sent to the callbacks set up by libstrongswan. Fixes a426851f6362 ("leak-detective: Use callback functions to report leaks and usage information"). | ||||
* | openssl: Don't refer to EVP_des_ecb() if OpenSSL is built without DES support | Tobias Brunner | 2015-04-17 | 1 | -0/+2 |
| | | | | | | While DES-ECB is not registered by the plugin in this case (so the function will never actually be called), the compiler still warns about the implicitly declared function. | ||||
* | strerror: Move to its own Doxygen subgroup | Martin Willi | 2015-04-16 | 1 | -1/+2 |
| | |||||
* | utils: Clean up includes | Martin Willi | 2015-04-16 | 2 | -36/+31 |
| | |||||
* | align: Move min/max/padding/alignment functions to separate files | Martin Willi | 2015-04-16 | 6 | -109/+154 |
| | |||||
* | time: Move time related functions to separate files | Martin Willi | 2015-04-16 | 6 | -191/+238 |
| | |||||
* | object: Move OO programming helper macros to a separate header file | Martin Willi | 2015-04-16 | 3 | -107/+128 |
| | |||||
* | status: Move status_t type and functions to separate files | Martin Willi | 2015-04-16 | 6 | -116/+125 |
| | |||||
* | path: Move path related utility functions to separate files | Martin Willi | 2015-04-16 | 6 | -201/+249 |
| | |||||
* | tty: Move tty related functions to separate files | Martin Willi | 2015-04-16 | 6 | -110/+157 |
| | |||||
* | memory: Move memory manipulation related functions to separate files | Martin Willi | 2015-04-16 | 6 | -380/+424 |
| | |||||
* | string: Move string related utility functions to separate files | Martin Willi | 2015-04-16 | 6 | -155/+199 |
| | |||||
* | byteorder: Move byte order related functions to separate header file | Martin Willi | 2015-04-16 | 3 | -137/+163 |
| | |||||
* | types: Use generic type definitions to separate header file | Martin Willi | 2015-04-16 | 3 | -63/+89 |
| | |||||
* | atomics: Move atomics/recounting support to separate files | Martin Willi | 2015-04-16 | 6 | -183/+251 |
| | |||||
* | unit-tests: Further increase the test vector testing timeout | Martin Willi | 2015-04-16 | 1 | -1/+1 |
| | | | | Some build bots running make check seem to have longer for the DH testing. | ||||
* | test-vectors: Define test vector symbols as extern | Martin Willi | 2015-04-16 | 1 | -7/+7 |
| | | | | | | We don't actually define a vector, but only prototype the test vector implemented in a different file. GCC uses the correct symbol during testing, but clang correctly complains about duplicated symbols during linking. | ||||
* | aesni: Fix doxygen groups | Martin Willi | 2015-04-15 | 1 | -2/+2 |
| | |||||
* | unit-tests: Set test verbosity just after test suite loading | Martin Willi | 2015-04-15 | 1 | -10/+9 |
| | | | | | | We see any plugin startup messages during suite configuration, where initialization is called once to query plugin features. No need to be verbose and show these messages once again in the first test. | ||||
* | crypto-factory: Remove obsolete transform testing functions | Martin Willi | 2015-04-15 | 2 | -54/+0 |
| | |||||
* | unit-tests: Use progressive testing of transforms with test vectors | Martin Willi | 2015-04-15 | 1 | -7/+26 |
| | | | | | | This allows us to show which transform from which plugin failed. Also, we use the new cleanup handler functionality that allows proper deinitialization on failure or timeout. | ||||
* | transform: Add a getter for the enum_names for a specific transform type | Martin Willi | 2015-04-15 | 2 | -0/+40 |
| | |||||
* | enum-names: Fail gracefully when passing a NULL value as enum names | Martin Willi | 2015-04-15 | 2 | -1/+15 |
| | |||||
* | crypto-factory: Add enumerator method to support individual transform testing | Martin Willi | 2015-04-15 | 2 | -0/+127 |
| |