Adrien Béraud
efb5f8e36a
crypto: avoid generating 0 or negative certificate serial numbers
2021-05-15 01:08:07 -04:00
Adrien Béraud
41760e4b65
ocsp response: improve exception message
2021-03-25 00:02:51 -04:00
Adrien Béraud
d0156b4637
crypto: add OcspRequest
2021-03-24 23:29:18 -04:00
Adrien Béraud
f6cca88593
ocsp response: verifyDirect now returns revocation status
2021-03-24 23:11:59 -04:00
Adrien Béraud
c6da80573e
ocsp: fix leak
2021-03-24 23:09:24 -04:00
Adrien Béraud
5c599b2feb
ocsp: check the appropriate field for status
2021-03-22 13:54:39 -04:00
Adrien Béraud
5a370cabb5
crypto: disable legacy encryption
...
Require OpenDHT 2.x to decrypt encrypted data
2021-03-18 10:37:28 -04:00
Adrien Béraud
d025f9d1b5
crypto: add methods to sign/decrypt raw data
2021-03-18 10:35:35 -04:00
Adrien Béraud
a77dc855f0
OCSP: use RFC-mandated parameters
...
* use 32 bytes nounce
* use SHA-1 for the certificate ID
2020-12-17 12:35:33 -05:00
Adrien Béraud
17e1cfbbbe
crypto: export OCSP request as string
2020-11-20 11:38:11 -05:00
Adrien Béraud
bfe1311ca8
crypto: cleanup OCSP result check
2020-11-19 17:12:54 -05:00
Adrien Béraud
0d31139402
crypto: throw in case of certificate generation error
2020-11-16 17:35:00 -05:00
Adrien Béraud
cf1874baaa
crypto: free token before return
2020-06-15 18:25:23 -04:00
Adrien Béraud
ae05bc8ea5
crypto: avoid goto
2020-06-15 17:47:32 -04:00
Seva
acbf7cfcf0
crypto: cleanup ocsp api & tests
2020-06-15 17:47:32 -04:00
Seva
8250116946
crypto: embed ocsp response into class
2020-06-15 17:47:32 -04:00
Seva
45e9458373
crypto: add get ocsp response in readable format
2020-06-15 17:47:32 -04:00
Seva
2623b86274
crypto/cert: add generate ocsp request & verify response
2020-06-15 17:47:32 -04:00
Seva
e26256b819
crypto: add get ocsp response certificate status
2020-06-15 17:47:32 -04:00
Seva
a7a3d23f50
crypto: add get serial number of cert.
2020-06-15 17:47:32 -04:00
Adrien Béraud
616d6fe4b8
update copyright date
2020-01-03 15:14:32 -05:00
Adrien Béraud
7094b79714
crypto: add PublicKey::pack(uint8_t* out, size_t* out_len)
2019-12-14 15:29:42 -05:00
Adrien Béraud
fea736428e
msgpack: take const reference in unpack
2019-12-14 13:01:24 -05:00
Adrien Béraud
f331f39c77
c wrapper: add dht_privatekey_export
2019-12-05 18:35:43 -05:00
Adrien Béraud
c0e117871e
c wrapper: allow retrieving value owner and recipient
2019-10-28 15:25:31 -04:00
Adrien Béraud
f84131c820
crypto: improve authenticated encryption performance
2019-10-22 13:59:36 -04:00
Adrien Béraud
3a6ce2f499
c wrapper: add initial dht_privatekey support
2019-10-16 13:09:59 -04:00
Adrien Béraud
e9377f2eb6
c wrapper: add Blob, PublicKey
2019-10-16 12:01:52 -04:00
Adrien Béraud
c37f0083d3
crypto: add CertificateRequest::toString
2019-08-30 11:26:29 -04:00
Adrien Béraud
18c3161261
tools: allow to use existing certificate/private key
2019-06-08 01:43:07 -04:00
Adrien Béraud
9b881d4e95
crypto: add initial certificate request support
2019-03-29 13:13:29 -04:00
Adrien Béraud
5e92777702
fix clang-tidy warnings
2019-03-17 19:22:28 -04:00
Adrien Béraud
4401e47002
cleanup, fix clang-tidy warnings
2019-03-17 17:43:52 -04:00
Adrien Béraud
f418b3651f
update copyright date
2019-03-16 12:37:23 -04:00
Adrien Béraud
2f423fec48
crypto: check public key for null before pack or print
2018-04-05 02:33:58 -04:00
Adrien Béraud
0957d30e86
y2038 bug: don't allow time wrap for certificate validity
2018-02-10 23:21:31 +01:00
Adrien Béraud
be6a5671ed
y2038 bug: change certificate duration to 10 years
...
A certificate duration of 20 years was making certificate expire
after 2038 which is not supported on many 32 bits platforms.
Reduce to 10 years, which gives another decade to deprecate 32-bits platforms.
2018-02-09 01:40:03 +01:00
Adrien Béraud
61ac297b1b
crypto: add method to read Certificate activation date
2018-02-09 00:42:25 +01:00
Adrien Béraud
bd9496e2ba
crypto: fix build on GnuTLS 3.3
2018-01-26 15:10:07 -05:00
Adrien Beraud
87dc080bbf
crypto: add raw hash function
2017-11-02 14:25:46 -04:00
atraczyk
207675a181
remove vs2015 based constexpr error, update vs project files
2017-10-18 17:50:19 -04:00
Adrien Beraud
4856a6b424
PublicKey: getId compatible with HASH_LEN = 32
2017-10-13 15:43:56 +02:00
Adrien Beraud
bedb51bf52
crypto: add EC curve identity generation
2017-08-28 12:03:15 -04:00
atraczyk
f9939ce336
decouple argon2 dependency
2017-05-03 11:26:45 -04:00
Adrien Beraud
d9bced965b
crypto: add TrustList move operator, prevent copy
2017-05-01 16:26:12 -04:00
Adrien Beraud
d0a8a92a56
crypto: add GnuTLS trust list wrapper
2017-04-27 04:45:59 +02:00
Adrien Beraud
210c4b2077
crypto: fix memory leak in RevocationList::getPacked()
2017-04-26 16:42:33 +02:00
Adrien Beraud
f41c8fef99
crypto: unify API across GnuTLS versions
...
Throw an exception if GnuTLS is too old
instead of not providing the API.
Also consistently throw in case of hash error,
and return 0 for an empty hash, for both
PublicKey and Certificate.
2017-04-20 17:07:21 +02:00
Adrien Beraud
79e266aac6
crypto: don't build getLongID() with old gnutls
2017-04-14 16:57:58 +02:00
Adrien Beraud
73bcebf355
license cleanup
2017-04-10 01:43:20 +02:00