Commit Graph
38 Commits
Author SHA1 Message Date
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
Adrien Béraud 6d6a2214db crypto: save private keys in PEM 2014-12-06 16:11:45 -05:00
Adrien Béraud fdaab32eb5 crypto: serialize in DER format by default 2014-12-05 11:36:17 -05:00
Adrien Béraud 09cfd86a09 crypto: allow to set generated RSA key size 2014-12-05 11:28:16 -05:00
Adrien Béraud 6458a9c589 crypto: allow to encrypt more than RSA block size
TODO: implement AES ecryption
2014-12-05 00:12:57 -05:00
Adrien Béraud 1cbfd1a893 crypto: handle more error cases 2014-11-25 22:20:55 -05:00
Adrien Béraud 151d31411a Add initial code 2014-11-20 01:42:44 -05:00