Vincent Prouillet
2662f6ad1f
fmt + clippy
2022-02-02 22:10:11 +01:00
Vincent Prouillet
ea4ed55551
Bytes everywhere for sign/verify
2022-02-02 22:10:11 +01:00
Charles Lehner
2178cc7506
Add EdDSA (Ed25519) ( #154 )
2022-02-02 22:10:11 +01:00
Craig Colegrove
64f276c814
Add new function and tests ( #138 )
...
Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2020-06-30 20:03:53 +02:00
Craig Colegrove
636c0dc203
Rename dangerous_unsafe_decode to dangerous_insecure_decode ( #139 )
...
* Rename dangerous_unsafe_decode to dangerous_insecure_decode
* Add back old function name with deprecation flag
2020-06-30 19:50:45 +02:00
Vincent Prouillet
689cc6d32e
Validate key type with algo in encode/decode
2020-01-13 19:41:06 +01:00
Vincent Prouillet
77ae0effc8
Add DecodingKey
2019-12-29 21:50:06 +01:00
Vincent Prouillet
0abeeac25f
Add EncodingKey
2019-12-29 19:33:17 +01:00
Vincent Prouillet
d550c5f318
Add more tests and document SEC1 lack of support
2019-11-15 20:16:38 +01:00
Vincent Prouillet
51dacd9bc4
Update docs
2019-11-14 19:43:43 +01:00
Vincent Prouillet
b27981549f
Not working yet jwk decoding
2019-11-09 11:42:40 +00:00
Vincent Prouillet
34ea194179
Move crypto to a dir
2019-11-08 19:00:19 +00:00
Vincent Prouillet
e3632b3a2c
Remove Key approach in favour of &[u8] with pem
2019-11-06 22:32:13 +00:00
Vincent Prouillet
382e4478cf
Move pem encoding tests
2019-11-06 18:30:59 +00:00
Levi
53188e1f40
Add functions to create pems and ders of the public keys ( #108 )
2019-11-06 13:58:49 +00:00
Vincent Prouillet
417e00780d
Use serde with derive feature
2019-11-03 15:46:08 +00:00
Vincent Prouillet
210e96063d
Reorganise tests
2019-11-03 15:36:19 +00:00
Levi
571898252f
Add PEM decoding support ( #106 )
...
* Add PEM support with pem and simple_asn1. Documentation TODO
* Make pkcs1 and pkcs8 versions of the RSA key, confirm they pass tests.
* Add documentation, simplify
* Update readme
* Bump pem version
* Remove extra print
2019-11-03 12:22:51 +00:00
Vincent Prouillet
10105af2fd
Add support for modulus/exponent
2019-07-13 17:43:44 +02:00
Vincent Prouillet
b8627260b2
Update to edition 2018
2019-07-06 20:36:32 +02:00
Vincent Prouillet
22cd4dbb62
Remove unused test key
2019-07-06 20:24:14 +02:00
Vincent Prouillet
20013a4e4f
Fixed conflicts
2019-06-16 18:00:00 +02:00
Vincent Prouillet
84ee604e88
trait -> enum
2019-06-16 17:51:43 +02:00
Kan-Ru Chen
c26bdf7e06
Support for RSASSA-PSS signing algorithm
...
As specified in https://tools.ietf.org/html/rfc7518#section-3.5
- PS256 - RSASSA-PSS using SHA-256 hash algorithm
- PS384 - RSASSA-PSS using SHA-384 hash algorithm
- PS512 - RSASSA-PSS using SHA-512 hash algorithm
2019-06-08 03:08:54 +09:00
Jake Shadle
c5db9fbe32
Fix tests
2019-05-15 16:20:25 +02:00
Jasper Bryant-Greene
e10b049d9a
implemented verification of ECDSA signatures and added tests
2019-02-01 12:11:20 +08:00
Vincent Prouillet
8f0809318d
rustfmt
2018-10-28 19:58:35 +01:00
Vincent Prouillet
e725bea1d2
Update docs for RSA signing/verification
2018-10-15 13:26:03 +02:00
himanoa
4bd4c8b3de
feat: Implement FromStr trait for Algorithm
2018-08-31 03:53:55 +09:00
Vincent Prouillet
5528497f5a
Fix validation not working properly
...
Close #51
2018-07-25 15:42:02 +02:00
Mike Engel
d30a7599a8
Add a method to decode a token without signature validation
...
- Solves #48
- `dangerous_unsafe_decode`
- No docs (aside from cargo) since people probably shouldn't use it
2018-03-13 20:47:43 -06:00
Vincent Prouillet
7907b1cd79
Fix readme
2017-11-14 17:18:25 +01:00
Vincent Prouillet
eae3743017
Make it mandatory to specify algorithm
2017-10-22 13:23:46 +02:00
Vincent Prouillet
3985915da6
Update error-chain and make typ public
2017-09-07 16:46:40 +09:00
Vincent Prouillet
d213fb8a62
Remove validate_signature option and add decode_header
2017-08-25 17:48:53 +09:00
Vincent Prouillet
fc9f83b837
No need to pass an algorithm to decode
2017-04-22 15:21:44 +09:00
Vincent Prouillet
57c513c757
Actually take a ref to Validation
...
Seems like I updated the docs but not the code...
2017-04-14 20:32:40 +09:00
Vincent Prouillet
50d676865f
Add test for decode without validating signature
2017-04-12 18:03:28 +09:00
Vincent Prouillet
410499e6b6
Add validation
2017-04-12 17:51:05 +09:00
Vincent Prouillet
c244e835e0
Take ref to Header, not by value
2017-04-11 12:54:32 +09:00
Vincent Prouillet
67497950c6
RSA working
2017-04-11 12:41:21 +09:00
Vincent Prouillet
f7d0a7a002
Work on RSA
2017-04-11 12:40:55 +09:00
Vincent Prouillet
e3a4294e85
Move to serde + base64
...
Remove Part trait
Move tests to tests directory
Reorganise code
2017-04-11 12:40:40 +09:00