Commit Graph

31 Commits

Author SHA1 Message Date
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
Vincent Prouillet 634d75e8fa to_owned -> to_string 2016-12-26 13:24:18 +09:00
Vincent Prouillet 257218bc14 Remove silly match 2016-08-23 18:03:33 +01:00
Vincent Prouillet 3f986f54a8 rust-crypto -> ring 2016-08-23 17:39:18 +01:00
Félix Saparelli 1b7ec1057a Expose sign() and verify() 2016-04-24 19:18:26 +12:00
Warts Werdna 6d50f5bcd1 test if header.alg matches algorithm passed to decode() 2016-04-02 12:44:34 +02:00
Warts Werdna 58b617bbcb add a test for completely normal decoding 2016-04-02 12:44:34 +02:00
Vincent Prouillet 92bc6b8dd4 Release 1.1.1 2016-03-29 16:28:57 +01:00
Warts Werdna 412ed97389 custom json encoder omits None when serializing 2016-03-19 20:21:11 +01:00
Vincent Prouillet 002f8a8c7f Change order of encode method args + make alg field public 2015-12-21 19:24:13 +00:00
Vincent Prouillet f7e87663e2 More examples + fix header struct access 2015-12-20 01:17:10 +00:00
Vincent Prouillet 3930338105 Move macro out of decode + some docstring changes 2015-12-20 01:03:20 +00:00
Vincent Prouillet 275c95281f Use bytes for secret on encode as well for symmetry 2015-12-20 00:41:22 +00:00
Vincent Prouillet 1179eb8b55 Add all params of header from RFC 2015-12-18 21:07:48 +00:00
Markus Unterwaditzer d6d0ce058b Allow non-UTF8 keys for decoding too 2015-12-16 18:40:28 +01:00
Kevin Butler 3dc9295a54 Allow custom encoded types for Part 2015-11-06 22:45:47 +00:00
Kevin Butler 0f41c31687 Precompute headers 2015-11-06 22:45:47 +00:00
Kevin Butler 4ebcfca049 Rewrite decode 2015-11-06 22:45:47 +00:00
Kevin Butler 486c4a87f9 Use constant time comparison for hmacs, see MacResult::code for warning 2015-11-06 17:23:29 +00:00
Kevin Butler 6138bf3dce Minor test cleanup 2015-11-06 17:23:29 +00:00
Kevin Butler 09c4d14609 Weaken parameter requirements for encode 2015-11-06 17:23:29 +00:00
Kevin Butler b1c10c7085 Weaken parameter requirements for Part::from_base64 2015-11-05 17:11:48 +00:00
Vincent Prouillet 6ae77c0b06 Make Algorithm encodable/decodable rather than using String 2015-11-02 23:12:01 +00:00
Vincent Prouillet 61bbe889f2 Add sha384 and sha512
Thanks to irc user durka42
2015-11-02 23:09:09 +00:00
Vincent Prouillet b3663e90c6 Uncomment alg comparison 2015-11-02 21:22:21 +00:00
Vincent Prouillet 96acf8f143 Move benches to a folder + add license 2015-11-02 21:15:45 +00:00
Vincent Prouillet d29f670989 Add mini docs 2015-11-01 22:59:42 +00:00
Vincent Prouillet 3452ba26d1 Add basic working code 2015-11-01 22:31:46 +00:00
Vincent Prouillet 2253cdec4f wip crypto 2015-11-01 19:32:43 +00:00
Vincent Prouillet 7585a7f0f9 Initial commit 2015-10-31 15:37:15 +00:00