Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unit-tests: Rename targets for libstrongswan and kernel-netlink | Thomas Egerer | 2017-11-09 | 1 | -5/+5 |
| | | | | | | | | | libstrongswan and kernel-netlink are the only two components which do not adhere to the naming scheme used for all other tests. If the tests are run by an external application this imposes problems due to clashing names. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | auth-cfg: Add RSA/PSS schemes for pubkey and rsa if enabled in strongswan.conf | Tobias Brunner | 2017-11-08 | 1 | -0/+27 |
| | | | | Also document the rsa/pss prefix. | ||||
* | signature-params: Add helpers to parse/build ASN.1 algorithmIdentifier for ↵ | Tobias Brunner | 2017-11-08 | 1 | -0/+111 |
| | | | | signature schemes | ||||
* | ikev2: Enumerate RSA/PSS schemes and use them if enabled | Tobias Brunner | 2017-11-08 | 1 | -11/+16 |
| | |||||
* | auth-cfg: Parse rsa/pss auth tokens | Tobias Brunner | 2017-11-08 | 1 | -0/+74 |
| | |||||
* | auth-cfg: Store signature schemes as signature_params_t objects | Tobias Brunner | 2017-11-08 | 2 | -8/+27 |
| | | | | | Due to circular references the hasher_from_signature_scheme() helper does not take a signature_params_t object. | ||||
* | signature-params: Add helper struct for signature scheme and parameters | Tobias Brunner | 2017-11-08 | 1 | -4/+124 |
| | |||||
* | unit-tests: Add RSA-PSS signature tests with specific salts | Tobias Brunner | 2017-11-08 | 1 | -92/+818 |
| | |||||
* | unit-tests: Warn if we skip RSA tests due to dependencies | Tobias Brunner | 2017-11-08 | 1 | -0/+11 |
| | |||||
* | unit-tests: Add ability to issue a warning message for a test case | Tobias Brunner | 2017-11-08 | 3 | -6/+116 |
| | | | | | This way we can warn if we e.g. skipped actually doing something due to dependencies (otherwise the test case would just appear to have succeeded). | ||||
* | unit-tests: Add FIPS 186-4 RSASSA-PSS test vectors | Tobias Brunner | 2017-11-08 | 1 | -0/+1629 |
| | | | | | | | | Since not all implementations allow setting a specific salt value when generating signatures (e.g. OpenSSL doesn't), we are often limited to only using the test vectors with salt length of 0. We also exclude test vectors with SHA-1, SHA-224 and SHA-384. | ||||
* | unit-tests: Create and verify some RSA PSS signatures | Tobias Brunner | 2017-11-08 | 1 | -3/+25 |
| | |||||
* | unit-tests: Add FIPS 186-4 RSA test vectors | Tobias Brunner | 2017-11-08 | 1 | -5/+2428 |
| | | | | Excluding SHA-224 and the stuff from FIPS 186-2 (SHA-1, 1024 bit keys). | ||||
* | signature-params: Add functions to parse/build ASN.1 RSASSA-PSS params | Tobias Brunner | 2017-11-08 | 3 | -1/+233 |
| | |||||
* | asn1: Add function to generate an ASN.1 integer from an uint64_t | Tobias Brunner | 2017-11-08 | 1 | -6/+35 |
| | |||||
* | private-key: Add optional parameters argument to sign() method | Tobias Brunner | 2017-11-08 | 3 | -6/+6 |
| | |||||
* | public-key: Add optional parameters argument to verify() method | Tobias Brunner | 2017-11-08 | 3 | -13/+18 |
| | |||||
* | ikev2: Don't use SHA-1 for RFC 7427 signature authentication | Tobias Brunner | 2017-11-08 | 1 | -3/+3 |
| | | | | | | RFC 8247 demoted it to MUST NOT. References #2427. | ||||
* | utils: Add helper function to parse time spans from strings | Tobias Brunner | 2017-11-02 | 1 | -0/+52 |
| | |||||
* | traffic-selector: Use single buffer for both address families | Tobias Brunner | 2017-08-17 | 1 | -9/+29 |
| | | | | | | | | The generic field of size 0 in the union that was used previously triggered index-out-of-bounds errors with the UBSAN sanitizer that's used on OSS-Fuzz. Since the two family specific union members don't really provide any advantage, we can just use a single buffer for both families to avoid the errors. | ||||
* | Fixed some typos, courtesy of codespell | Tobias Brunner | 2017-08-07 | 1 | -1/+1 |
| | |||||
* | unit-tests: Double escape backslashes in Windows paths in settings test | Tobias Brunner | 2017-07-28 | 1 | -2/+6 |
| | | | | | That's required when these are used as include paths in settings file strings. | ||||
* | unit-tests: iv_gen_seq has a dependency on RNG_STRONG | Tobias Brunner | 2017-07-28 | 1 | -1/+1 |
| | | | | We currently don't have an RNG in Windows builds. | ||||
* | unit-tests: Updated asn1-parser tests | Andreas Steffen | 2017-05-29 | 1 | -1/+105 |
| | |||||
* | linked-list: Change return value of find_first() and signature of its callback | Tobias Brunner | 2017-05-26 | 1 | -15/+66 |
| | | | | This avoids the unportable five pointer hack. | ||||
* | linked-list: Change interface of callback for invoke_function() | Tobias Brunner | 2017-05-26 | 1 | -3/+7 |
| | | | | This avoids the unportable five pointer hack. | ||||
* | linked-list: invoke_offset() doesn't take any additional arguments anymore | Tobias Brunner | 2017-05-26 | 1 | -9/+11 |
| | |||||
* | Change interface for enumerator_create_filter() callback | Tobias Brunner | 2017-05-26 | 1 | -15/+35 |
| | | | | | This avoids the unportable 5 pointer hack, but requires enumerating in the callback. | ||||
* | unit-tests: Fix test_chunk_eq() if arguments have side-effects | Tobias Brunner | 2017-05-24 | 1 | -1/+1 |
| | |||||
* | utils: chunk_from_hex() skips optional 0x prefix | Andreas Steffen | 2017-03-06 | 1 | -10/+11 |
| | |||||
* | host: Don't log port if it is zero | Tobias Brunner | 2017-03-02 | 1 | -5/+5 |
| | |||||
* | traffic-selector: Allow calling set_address() for any traffic selector | Tobias Brunner | 2017-02-27 | 1 | -2/+10 |
| | | | | | Users may check is_host(), is_dynamic() or includes() before calling this if restrictions are required (most actually already do). | ||||
* | unit-tests: Allow default test timeout to be configured via compile option | Thomas Egerer | 2017-02-14 | 1 | -0/+2 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | Moved Ed25519 tests to libstrongswan | Andreas Steffen | 2016-12-14 | 3 | -1/+531 |
| | |||||
* | unit-tests: Completed coverage of hasher, crypter and libnttfft | Andreas Steffen | 2016-12-14 | 2 | -34/+47 |
| | |||||
* | gmp: Support of SHA-3 RSA signatures | Andreas Steffen | 2016-09-22 | 4 | -44/+55 |
| | |||||
* | unit-tests: MGF1 tests depend on an XOF implementation not just a hash function | Tobias Brunner | 2016-09-21 | 1 | -2/+2 |
| | | | | | If the mgf1 plugin was not enabled (e.g. with the default configure options) the tests failed. | ||||
* | mgf1: Refactored MGF1 as an XOF | Andreas Steffen | 2016-09-21 | 2 | -43/+61 |
| | |||||
* | unit-tests: Defining TESTS_RUNNERS allows to only run specific test runners | Tobias Brunner | 2016-06-17 | 2 | -1/+33 |
| | |||||
* | configure: Check for and explicitly link against -latomic | Martin Willi | 2016-06-14 | 1 | -1/+1 |
| | | | | | Some C libraries, such as uClibc, require an explicit link for some atomic functions. Check for any libatomic, and explcily link it. | ||||
* | chunk: Skip all leading zero bytes in chunk_skip_zero() not just the first | Tobias Brunner | 2016-04-04 | 1 | -12/+16 |
| | |||||
* | string: Gracefully handle NULL in str*eq() macros | Tobias Brunner | 2016-04-04 | 1 | -0/+78 |
| | |||||
* | Use standard unsigned integer types | Andreas Steffen | 2016-03-24 | 11 | -78/+78 |
| | |||||
* | Implemented IPv4/IPv6 subnet and range identities | Andreas Steffen | 2016-03-10 | 1 | -48/+207 |
| | | | | | | The IKEv1 IPV4_ADDR_SUBNET, IPV6_ADDR_SUBNET, IPV4_ADDR_RANGE and IPV6_ADDR_RANGE identities have been fully implemented and can be used as owners of shared secrets (PSKs). | ||||
* | linked-list: Add method to compare two lists of objects for equality | Tobias Brunner | 2016-03-08 | 1 | -0/+91 |
| | |||||
* | auth-cfg: Make IKE signature schemes configurable | Tobias Brunner | 2016-03-04 | 3 | -0/+124 |
| | | | | | | This also restores the charon.signature_authentication_constraints functionality, that is, if no explicit IKE signature schemes are configured we apply all regular signature constraints as IKE constraints. | ||||
* | unit-tests: The pseudonym RDN is now recognized, so use something more exotic | Tobias Brunner | 2016-01-28 | 1 | -3/+3 |
| | |||||
* | array: Add an insert/create function for value based arrays | Martin Willi | 2015-12-07 | 1 | -0/+43 |
| | |||||
* | settings: Add settings_value_as_uint64() helper function | Tobias Brunner | 2015-11-11 | 1 | -0/+24 |
| | |||||
* | traffic-selector: Don't end printf'ed list of traffic selectors with a space | Tobias Brunner | 2015-11-10 | 1 | -3/+3 |
| |