Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | aesni: Implement a AES-NI based CBC crypter using the key schedule | Martin Willi | 2015-04-15 | 4 | -0/+293 | |
| | ||||||
* | aesni: Implement 256-bit key schedule | Martin Willi | 2015-04-15 | 1 | -0/+77 | |
| | ||||||
* | aesni: Implement 192-bit key schedule | Martin Willi | 2015-04-15 | 1 | -0/+81 | |
| | ||||||
* | aesni: Implement 128-bit key schedule | Martin Willi | 2015-04-15 | 1 | -0/+45 | |
| | ||||||
* | aesni: Add a common key schedule class for AES | Martin Willi | 2015-04-15 | 3 | -0/+165 | |
| | ||||||
* | aesni: Provide a plugin stub for AES-NI instruction based crypto primitives | Martin Willi | 2015-04-15 | 3 | -0/+141 | |
| | ||||||
* | test-vectors: Add some self-made additional AES-GCM test vectors | Martin Willi | 2015-04-15 | 2 | -0/+157 | |
| | | | | | We missed test vectors for 192/256-bit key vectors for ICV8/12, and should also have some for larger associated data chunk. | |||||
* | test-vectors: Define some additional CCM test vectors | Martin Willi | 2015-04-15 | 2 | -1/+84 | |
| | | | | | | We don't have any where plain or associated data is not a multiple of the block size, but it is likely to find bugs here. Also, we miss some ICV12 test vectors using 128- and 192-bit key sizes. | |||||
* | crypto-tester: Use the plugin feature key size to benchmark crypters/aeads | Martin Willi | 2015-04-15 | 1 | -0/+2 | |
| | | | | | | We previously didn't pass the key size during algorithm registration, but this resulted in benchmarking with the "default" key size the crypter uses when passing 0 as key size. | |||||
* | utils: Use chunk_equals_const() for all cryptographic purposes | Martin Willi | 2015-04-14 | 4 | -4/+4 | |
| | ||||||
* | utils: Use memeq_const() for all cryptographic purposes | Martin Willi | 2015-04-14 | 4 | -6/+5 | |
| | ||||||
* | rdrand: Reuse CPU feature detection to check for RDRAND instructions | Martin Willi | 2015-04-13 | 1 | -51/+4 | |
| | ||||||
* | padlock: Reuse common CPU feature detection to check for Padlock features | Martin Willi | 2015-04-13 | 1 | -80/+17 | |
| | ||||||
* | sqlite: Use our locking mechanism also when sqlite3_threadsafe() returns 0 | Martin Willi | 2015-04-13 | 1 | -7/+20 | |
| | | | | | | We previously checked for older library versions without locking support at all. But newer libraries can be built in single-threading mode as well, where we have to care about the locking. | |||||
* | sqlite: Show SQLite library version and thread safety flag during startup | Martin Willi | 2015-04-13 | 1 | -1/+8 | |
| | ||||||
* | openssl: Don't pre-initialize OpenSSL HMAC with an empty key | Martin Willi | 2015-04-13 | 1 | -6/+16 | |
| | | | | | | | | | | With OpenSSL commit 929b0d70c19f60227f89fac63f22a21f21950823 setting an empty key fails if no previous key has been set on that HMAC. In 9138f49e we explicitly added the check we remove now, as HMAC_Update() might crash if HMAC_Init_ex() has not been called yet. To avoid that, we set and check a flag locally to let any get_mac() call fail if set_key() has not yet been called. | |||||
* | fips-prf: Remove superfluous <arpa/inet.h> include | Martin Willi | 2015-04-13 | 1 | -2/+0 | |
| | | | | | As we make no use of htonl() and friends, this is unneeded, but actually prevents a Windows build. | |||||
* | Wipe auxiliary key store5.3.0 | Andreas Steffen | 2015-03-28 | 1 | -1/+1 | |
| | ||||||
* | fips-prf: Fail when trying to use append mode on FIPS-PRF | Martin Willi | 2015-03-28 | 1 | -1/+6 | |
| | | | | | Append mode hardly makes sense for the special stateful FIPS-PRF, which is different to other PRFs. | |||||
* | cmac: Reset state before doing set_key() | Martin Willi | 2015-03-27 | 1 | -0/+3 | |
| | ||||||
* | af-alg: Reset hmac/xcbc state before doing set_key() | Martin Willi | 2015-03-27 | 2 | -0/+2 | |
| | ||||||
* | xcbc: Reset XCBC state in set_key() | Martin Willi | 2015-03-27 | 1 | -0/+4 | |
| | | | | | If some partial data has been appended, a truncated key gets invalid if it is calculated from the pending state. | |||||
* | hmac: Reset the underlying hasher before doing set_key() with longer keys | Martin Willi | 2015-03-27 | 1 | -1/+2 | |
| | | | | | | | The user might have done a non-complete append, having some state in the hasher. Fixes #909. | |||||
* | diffie-hellman: Verify public DH values in backends | Martin Willi | 2015-03-23 | 5 | -0/+25 | |
| | ||||||
* | diffie-hellman: Add a bool return value to set_other_public_value() | Martin Willi | 2015-03-23 | 6 | -28/+31 | |
| | ||||||
* | diffie-hellman: Add a bool return value to get_my_public_value() | Martin Willi | 2015-03-23 | 6 | -7/+13 | |
| | ||||||
* | diffie-hellman: Use bool instead of status_t as get_shared_secret() return value | Martin Willi | 2015-03-23 | 6 | -19/+19 | |
| | | | | | While such a change is not unproblematic, keeping status_t makes the API inconsistent once we introduce return values for the public value operations. | |||||
* | files: Add simple plugin to load files from file:// URIs | Tobias Brunner | 2015-03-09 | 5 | -0/+293 | |
| | ||||||
* | plugin-loader: Increase log level for warning about plugin features that ↵ | Tobias Brunner | 2015-03-09 | 1 | -3/+3 | |
| | | | | | | | | | failed to load Since we can't get rid of all unmet dependencies (at least not in every possible plugin configuration) the message is more confusing than helpful. In particular because a detailed warning about plugin features that failed to load due to unmet dependencies is only logged on level 2. | |||||
* | pkcs11: Convert RFC 3279 ECDSA signatures when verifying | Tobias Brunner | 2015-03-09 | 1 | -4/+33 | |
| | | | | References #873. | |||||
* | pkcs11: Properly encode RFC 3279 ECDSA signatures | Tobias Brunner | 2015-03-09 | 1 | -2/+19 | |
| | | | | Fixes #873. | |||||
* | pkcs11: Properly encode EC_POINTs created on a token | Tobias Brunner | 2015-03-09 | 1 | -5/+8 | |
| | | | | | | | Some tokens might not fail when creating EC public keys in the incorrect format, but they will later not be able to use them to verify signatures. References #872. | |||||
* | pkcs11: Properly handle EC_POINTs returned as ASN.1 octet string | Tobias Brunner | 2015-03-09 | 1 | -1/+43 | |
| | | | | | | | This is the correct encoding but we internally only use unwrapped keys and some tokens return them unwrapped. Fixes #872. | |||||
* | x509: Use subjectKeyIdentifier provided by issuer cert when checking CRL issuer | Tobias Brunner | 2015-03-06 | 1 | -18/+15 | |
| | | | | | | | | | Some CAs don't use SHA-1 hashes of the public key as subjectKeyIdentifier and authorityKeyIdentifier. If that's the case we can't force the calculation of the hash to compare that to authorityKeyIdentifier in the CRL, instead we use the subjectKeyIdentifier stored in the issuer certificate, if available. Otherwise, we fall back to the SHA-1 hash (or comparing the DNs) as before. | |||||
* | bliss: Add generated Huffman codes to the repository | Tobias Brunner | 2015-03-02 | 5 | -14/+860 | |
| | | | | | | | | | | | | | While these files are generated they don't really change and are not architecture dependant. The previous solution prevented cross-compilation from the repository as `bliss_huffman` was built for the target system but was then executed on the build host to create the source files, which naturally was bound to fail. The `recreate-bliss-huffman` make target can be used inside the bliss directory to update the source files if needed. Fixes #812. | |||||
* | Fixed compiler warnings | Andreas Steffen | 2015-02-27 | 1 | -2/+3 | |
| | ||||||
* | Allow SHA256 and SHA384 data hash for BLISS signatures. | Andreas Steffen | 2015-02-26 | 4 | -26/+74 | |
| | | | | | The default is SHA512 since this hash function is also used for the c_indices random oracle. | |||||
* | unit-tests: Completed BLISS tests | Andreas Steffen | 2015-02-25 | 6 | -16/+668 | |
| | ||||||
* | Check for null pointer before applying memwipe() | Andreas Steffen | 2015-02-25 | 1 | -4/+10 | |
| | ||||||
* | Implemented improved BLISS-B signature algorithm | Andreas Steffen | 2015-02-25 | 6 | -47/+352 | |
| | ||||||
* | plugin-loader: Do not unload libraries during dlclose(), if supported | Martin Willi | 2015-02-24 | 1 | -1/+9 | |
| | | | | | | | Unloading libraries calls any library constructor/destructor functions. Some libraries can't handle that in our excessive unit test use. GnuTLS leaks a /dev/urandom file descriptor, letting unit tests fail with arbitrary out-of-resources errors. | |||||
* | openssl: Return the proper IV length for OpenSSL crypters | Tobias Brunner | 2015-02-23 | 1 | -1/+1 | |
| | | | | | | | For instance, the NULL cipher has a block size of 1 but an IV length of 0. Fixes #854. | |||||
* | x509: Fix public key reference leak if authority key identifier does not match | Martin Willi | 2015-02-06 | 1 | -10/+12 | |
| | ||||||
* | unit-tests: Adapted to coverity fixes | Andreas Steffen | 2014-12-23 | 1 | -9/+12 | |
| | ||||||
* | Fixed bad bit shift and sign extension errors | Andreas Steffen | 2014-12-23 | 3 | -4/+14 | |
| | ||||||
* | bliss: Remove unnecessary cast to double | Tobias Brunner | 2014-12-23 | 1 | -1/+1 | |
| | | | | | | Coverity is still not happy when the result of an integer division is assigned to a double (without e.g. casting the result to an int first to indicate the intent). The shift should avoid this issue. | |||||
* | bliss: Log type if unsupported | Tobias Brunner | 2014-12-23 | 1 | -1/+1 | |
| | ||||||
* | bliss: Make sure sampler exists after checking for it earlier | Tobias Brunner | 2014-12-23 | 1 | -2/+2 | |
| | ||||||
* | crypto: Define MODP_CUSTOM outside of IKE DH range | Tobias Brunner | 2014-12-23 | 6 | -6/+6 | |
| | | | | | | | | | Before this fix it was possible to crash charon with an IKE_SA_INIT message containing a KE payload with DH group MODP_CUSTOM(1025). Defining MODP_CUSTOM outside of the two byte IKE DH identifier range prevents it from getting negotiated. Fixes CVE-2014-9221. | |||||
* | bliss: Fix Doxygen comments | Tobias Brunner | 2014-12-15 | 2 | -6/+6 | |
| |