Commit Graph

67 Commits

Author SHA1 Message Date
Christopher McArthur
b3de79da98 testing just picojson templating 2020-05-20 14:26:48 -04:00
Christopher McArthur
767c3fc827 [skip ci] more progress 2020-05-20 14:23:28 -04:00
Christopher McArthur
f5e3716c99 [skip ci] more progress 2020-05-19 23:33:19 -04:00
Christopher McArthur
41d767d926 traits v2 2020-05-19 22:54:55 -04:00
Christopher McArthur
45ccd617ad rough nholmann/json traits 2020-05-19 21:34:40 -04:00
Christopher McArthur
56ffe083ae tester that compiles 2020-05-18 22:25:19 -04:00
Christopher McArthur
494cb2c051 wip
low laptop battery
2020-05-16 21:30:08 -04:00
Chris Mc
b7ed684a3b Update traits.h 2020-05-16 00:23:17 -04:00
Chris Mc
c5663f5f2b Update traits.h 2020-05-16 00:17:26 -04:00
Chris Mc
c1cfb735f7 Create traits.h 2020-05-15 23:57:46 -04:00
Dominik Thalhammer
0c803ed905 Merge branch 'master' into verify-aud-string 2020-05-02 14:59:09 +02:00
Chris Mc
d8f1170826 simplified object compare 2020-04-15 23:44:45 -04:00
Chris Mc
c9d04be14a adding support for aud as string
making sure to compare complex objects in verifier

inspired by dcbf0ddbfd
2020-04-15 23:33:20 -04:00
Chris Mc
a4bb9dc796 fixing warning 2020-04-15 22:55:17 -04:00
Chris Mc
5477d3f749 missed namespace for helper
only tested with openssl 1.1.1d RIP
2020-04-15 22:54:08 -04:00
Chris Mc
20a992fff3 changing whitespace
just to see if CI will pass today
2020-04-15 22:34:52 -04:00
Chris Mc
fa806e7be9 fixing conversion warnings on windows
where sizeof(size_t) != sizeof(int) since x86 still exists
2020-04-11 14:05:50 -04:00
Christopher McArthur
1c14473875 correcting copy paste errors 2020-04-11 12:58:19 -04:00
Chris Mc
141ae3cac0 replacing decimal for hex
to be consistent with other places in the code
to follow the numbering style of openssl
2020-04-11 12:58:19 -04:00
Chris Mc
bc932e8ab4 adding macro for fall-through
removing code duplication
2020-04-11 12:58:19 -04:00
Chris Mc
103532688d exposing private functions as helpers
this is to help with other JOSE tasks
2020-04-11 12:58:19 -04:00
Chris Mc
56b6c8e531 removing duplication 2020-04-11 12:58:19 -04:00
Chris Mc
0b0ca4c345 using original source for pad/trim 2020-04-11 12:58:19 -04:00
Chris Mc
33c40b023f fixing padding + adding a trim 2020-04-11 12:58:19 -04:00
Chris Mc
be603cd74e add utility for adding padding
useful in when decoding ( padding is optional )
2020-04-11 12:58:19 -04:00
Dominik Thalhammer
cf8a6c326c Merge branch 'master' into patch-2 2020-04-07 17:09:21 +02:00
Chris Mc
18761ec28b fixes #57 2020-04-07 10:57:22 -04:00
Chris Mc
6284781937 correcting usage of rsa_exception in ecdsa alg 2020-03-25 09:49:03 -04:00
Chris Mc
e2b4067d6f adding missing &
bad copy pasting
2020-03-24 09:31:03 -04:00
Chris Mc
42310e634d adding stream operators to claims
easier to parse and output claims
2020-03-24 09:09:41 -04:00
Chris Mc
bea25f039b removing code duplication from explicit option 2020-03-24 09:05:50 -04:00
Dominik Thalhammer
c9e7b80452 Merge remote-tracking branch 'upstream/master' 2020-03-18 21:22:04 +01:00
Dominik Thalhammer
da58b496db Add check for correct key size passed to ecdsa
see #53
2020-03-11 21:10:14 +01:00
Christopher McArthur
8086b6ded2 exporting picojson 2020-01-20 20:56:08 -05:00
Christopher McArthur
1659e8181d using picojson from vcpkg 2020-01-19 17:38:31 -05:00
Christopher McArthur
96528a8872 first draft for cmake support 2020-01-19 17:16:40 -05:00
Christopher McArthur
e342957e69 rm third part headers 2020-01-19 15:19:12 -05:00
Norbert Pfeiler
bf75dbb815 update picojson 2020-01-02 14:28:07 +01:00
Dominik Thalhammer
9bf29556db Bugfix incorrect padding of ECDSA signatures
see #49
2019-12-18 20:04:46 +01:00
Arnaud Desitter
6e6c73e54c Fix memory leak in ecdsa::verify 2019-12-16 11:35:27 +00:00
Dominik Thalhammer
f85c63806d Make algorith constructors explicit
see #39
2019-09-12 10:18:53 +02:00
Dominik Thalhammer
27f32983fb Bugfix for set_algorithm 2019-08-10 21:27:30 +02:00
Dominik Thalhammer
9c7ae911ee Allow constructing an claim from an container.
closes #35
2019-08-08 22:34:53 +02:00
Dominik Thalhammer
2b85b34ecc Make sign method const and add noexpect where possible.
closes #37
2019-08-08 22:22:38 +02:00
Dominik Thalhammer
aafd0b542f Change variable names
closes #30
2019-06-18 12:03:29 +02:00
Dominik Thalhammer
1d2b1bac13 Code cleanup + Bugfix 2019-05-07 13:42:37 +02:00
Dominik Thalhammer
4e74d111c0 Allow loading only private key
fixes #21
2019-05-06 10:24:13 +02:00
Dominik Thalhammer
273c9e325a Fix codacy for real 2019-05-05 20:18:56 +02:00
Dominik Thalhammer
d6c54a4647 Cleanup typecast and fix false positive in codacy 2019-05-05 20:04:51 +02:00
Pliable Pixels
3dbc5a0929 typecast to avoid errors 2019-05-05 11:22:34 -04:00