Commit Graph
56 Commits
Author SHA1 Message Date
Adrien Béraud 31fedd529b crypto: add CRL msgpack serialization 2016-12-01 18:42:26 -05:00
Adrien Béraud e9adff9dc5 crypto: add CRL move operator, export as DER 2016-11-30 17:30:09 -05:00
Adrien Béraud bfd58a204b crypto: add CRL import/export methods 2016-11-30 16:31:29 -05:00
Adrien Béraud 867bcf1514 crypto: add EC key generation 2016-11-29 18:04:25 -05:00
Adrien Béraud fb882ee440 crypto: add revocation list 2016-11-29 18:03:49 -05:00
Adrien Béraud 76fd216386 crypto: drop support for GnuTLS < 3.3 2016-09-06 17:18:16 -04:00
Adrien Béraud 8461f4018d crypto: avoid using std::to_string 2016-09-06 12:06:30 -04:00
Adrien Béraud c33c2e7e95 crypto: add key, hash length parameters 2016-09-06 12:06:30 -04:00
Adrien Béraud 97950621cd crypto: check max data size for sign 2016-08-25 00:42:50 -04:00
Adrien Béraud 690682408b build with -pedantic-errors, fix pedantic build errors 2016-08-16 10:26:44 -04:00
Andreas Traczyk 9e461e0960 microsoft compiler support 2016-06-02 12:17:09 -04:00
Adrien Béraud 69e3addb2c crypto: add CA certificate generation options 2016-04-19 12:30:42 -04:00
Adrien Béraud 1c8735e71a crypto: use argon2 for key stretching 2016-04-11 15:16:36 -04:00
Adrien Béraud 52b10819de crypto: add key stretching 2016-04-11 15:16:36 -04:00
Adrien Béraud 3e4a739d9f crypto: check key size in aesEncrypt 2016-04-05 16:00:51 -04:00
Adrien Béraud 9f4ca6c8f3 crypto: avoid to copy iv during encryption 2016-02-19 01:16:00 -05:00
Adrien Béraud b698687f99 crypto: add documentation 2016-02-18 22:24:33 -05:00
Adrien Béraud e00c8e9598 update copyright headers for 2016 2016-01-07 18:02:35 -05:00
Adrien Béraud 7e346cfcb8 update license terms
* removed OpenSSL exception
  (OpenDHT doesn't make use of OpenSSL)
* properly capitalize "Savoir-faire Linux"
2015-11-08 16:06:30 -05:00
Adrien Béraud 430daf5986 add utils module for common definitions/utilities 2015-11-08 16:06:30 -05:00
Adrien Béraud 5e265505e9 fix some clang warnings 2015-11-04 00:50:12 -05:00
Adrien Béraud 184dc17aa8 value: improve serialization backward compatibility 2015-10-24 01:40:59 -04:00
Adrien Béraud b71008303b crypto: prevent reference to temporary 2015-10-16 17:18:12 -04:00
Adrien Béraud 3cb11ef114 crypto: avoid reading key id twice 2015-10-16 13:44:18 -04:00
Adrien Béraud ff520d61f9 crypto: make new certificates valid 5 years
Bump from 700 days (less than 2 years).
2015-10-16 13:44:18 -04:00
Adrien Béraud cdcaebbc80 crypto: use AES-GCM + RSA for encryption rather than RSA-ECB 2015-08-13 11:28:29 -04:00
Adrien Béraud 70dfb4bbcf use msgpack for dht protocol and value serialization 2015-08-13 11:28:29 -04:00
Adrien Béraud ac13795db0 crypto: add DecryptError 2015-07-14 12:47:12 -04:00
Adrien Béraud d2c57b867d update copyright headers 2015-07-10 23:25:43 -04:00
Adrien Béraud db1b9c2f38 crypto: add Certificate getName, getIssuerName, getAltNames 2015-07-09 12:32:56 -04:00
Adrien Béraud 7959fe3dad crypto: don't use gnutls_global_init with new versions 2015-07-03 13:47:57 -04:00
Adrien Béraud 1c6a50969b crypto: support private key password encryption 2015-07-03 13:45:57 -04:00
Adrien Béraud dbde59a355 crypto: add key length param in generateIdentity() 2015-07-02 02:58:42 -04:00
Adrien Béraud e6ab305b33 crypto: use certificate chain again 2015-06-25 15:56:03 -04:00
Adrien Béraud 428ac04812 crypto: add Certificate::isCA 2015-06-25 11:43:11 -04:00
cberaud 41406833a8 add crypto::random_device 2015-05-15 19:57:04 +05:30
Guillaume Roguez 48c10af32f crypto: revert to DER fmt to pack certificate
Seems that Ring is not able to use PEM certificate.
Until we found a right way to use PEM, revert to DER format.
2015-05-01 11:13:35 -04:00
cberaud 06a32eedd1 Certificate: add option to not export the whole chain 2015-04-30 22:02:27 -04:00
Adrien Béraud 892af7a843 crypto: export the actual CAwith the chain 2015-04-30 21:52:38 -04:00
Adrien Béraud bdbc66e0b0 crypto: fix certificate chain export 2015-04-24 15:56:31 -04:00
Adrien Béraud 8f269ca405 crypto: import certificate chain from list of blobs 2015-04-20 17:57:58 -04:00
Adrien Béraud 9ee2a0763b crypto: serialize certificate chains 2015-04-20 15:50:38 -04:00
Adrien Béraud de92af95d3 return empty string in case of certificate export failure 2015-03-06 10:49:38 -05:00
Adrien Béraud 6e01255bc0 crypto: add Certificate::toString 2015-02-26 10:36:14 -05:00
Adrien Béraud 29f5d8c68e Use CryptoException for crypto errors 2015-02-16 14:29:32 -05:00
Adrien Béraud 72fe4c376f Fix GnuTLS early deinit 2015-02-16 14:28:26 -05:00
Adrien Béraud 2c8a9c25ed crypto: add Certificate::getId(), Certificate::getUID() 2015-02-12 14:50:50 -05:00
Adrien Béraud 129fded029 allow access to privatekey GnuTLS pointers 2015-01-23 17:10:18 -05:00
Adrien Béraud b97e323f78 fix some encryption issues 2014-12-16 15:10:22 -05:00
Adrien Béraud f5aaaf8b49 add missing headers 2014-12-07 16:26:12 -05:00