Aaron Loucks
bb3a0e23f2
Replace public parse functions with factory constructors
2020-02-14 18:37:36 -05:00
Aaron Loucks
783b82d493
Add parsing for pkcs1 and pkcs8 encoded rsa keys
...
Fixes #37
2020-02-13 18:12:07 -05:00
Friedel Ziegelmayer
6f76de030d
fix: make precompute optional instead of panicking on invalid coeff
...
* Make precompute return a result instead of panicking on invalid coeff
* Add regression test for panic on invalid coeff
Co-authored-by: Benoît C. <benoit.cortier@fried-world.eu>
2020-01-09 21:30:46 +01:00
Benoît CORTIER
d2efb8489a
Add regression test for panic on invalid coeff
2020-01-09 15:23:01 -05:00
Benoît CORTIER
ba0542ba91
Make precompute return a result instead of panicking on invalid coeff
2020-01-09 14:58:23 -05:00
dignifiedquire
3818b74b52
chore(rsa): release 0.2.0
2019-12-11 01:16:23 +01:00
Friedel Ziegelmayer
e38553f8e8
feat: update dependencies
2019-12-11 01:15:49 +01:00
dignifiedquire
fcd1e537d5
chore(rsa): release 0.1.4
2019-10-13 16:32:39 +02:00
dignifiedquire
6f6076702a
feat(deps): update to the latest
2019-10-13 16:31:11 +02:00
dignifiedquire
64a3ee5a36
chore: add release config
2019-10-13 15:34:57 +02:00
roblabla
610c4cc95f
Move copy_with_left_pad to algorithms
2019-09-26 14:49:59 +00:00
roblabla
30220cfd44
Fix the tests
2019-09-26 14:49:59 +00:00
roblabla
b821cc6cc2
Add new sign_pss/verify_pss
2019-09-26 14:49:59 +00:00
roblabla
527acfca31
Use separate functions for different padding schemes
2019-09-26 14:49:59 +00:00
roblabla
071f07f6c8
Avoid using vectors to store the asn1 prefixes
2019-09-26 14:49:59 +00:00
roblabla
2462f1dd56
Remove PublicKey trait, use deref.
...
Removes the PublicKey trait, using Deref to provide the RSAPublicKey
methods to RSAPrivateKey.
2019-09-26 14:49:59 +00:00
roblabla
5d28baf32a
Implement PSS
2019-09-26 14:49:59 +00:00
Robin Lambertz
cf9f1b48e9
feat: reexport BigUint
2019-08-27 12:45:19 +02:00
dignifiedquire
41897b7472
(cargo-release) start next development iteration 0.1.3
2019-03-26 15:24:53 +01:00
dignifiedquire
380c7e34b7
(cargo-release) version 0.1.3
2019-03-26 15:24:35 +01:00
Friedel Ziegelmayer
1e869bdae2
Merge pull request #17 from RustCrypto/zeroize
...
feat: implement zeroing using the zeroize crate
2019-03-26 15:24:04 +01:00
dignifiedquire
021ae799da
feat: implement zeroing using the zeroize crate
2019-03-26 14:53:53 +01:00
Patrick D Hayes
8e5ce15e18
feat(deps): update dependencies
2019-03-25 16:40:55 +01:00
Friedel Ziegelmayer
5f9b8fda74
Merge pull request #14 from phayes/master
...
Moving to 2018 edition
2019-03-19 16:09:19 +01:00
Patrick D Hayes
a37917ab50
feat(key): add to_public_key
method for RSAPrivateKey
...
Adds the `to_public_key` method for RSAPrivateKey, as a utility for when we need a concrete RSAPublicKey instead of a trait.
2019-03-19 16:08:26 +01:00
Patrick D Hayes
df157b4105
docs(cargo.toml): add readme reference
...
This will make the readme appear on crates.io
2019-03-19 16:07:14 +01:00
phayes
ee66f6a505
rustfmt on benches
2019-03-18 09:39:35 -07:00
phayes
49de6145aa
rustfmt
2019-03-18 09:36:53 -07:00
phayes
558d34f155
Moving to 2018 edition and applying 2018 idioms
2019-03-18 09:34:29 -07:00
phayes
bbd63fbba4
Switch to using for all crate level uses
2019-03-18 09:29:05 -07:00
Patrick D Hayes
f2399316bf
docs(readme): removing duplicate imports in example code
2019-03-18 12:59:06 +01:00
Patrick D Hayes
1703482ba9
feat: split (un)blind into their own functions, exposing raw RSA functions via internals
module
...
* Splitting blind and unblind into their own functions
* Adding public functions to private-key for blinding and unblinding
* Re-exporting raw RSA functions into a 'danger' module
* Better documentation
* Typos and grammar
* Updating as per suggestions, moving things into an 'internals' module which is optionally made public
* We blind and unblind using n and e, so public key is sufficient
2019-03-16 10:30:32 +01:00
dignifiedquire
69739656c4
(cargo-release) start next development iteration 0.1.2
2019-02-25 10:48:17 +01:00
dignifiedquire
639f1fdbe5
(cargo-release) version 0.1.2
2019-02-25 10:47:59 +01:00
dignifiedquire
ea09d34c75
feat: add support for SHA3 hashes
2019-02-25 10:38:45 +01:00
dignifiedquire
0c2247c6ce
(cargo-release) start next development iteration 0.1.1
2019-02-20 21:06:55 +01:00
dignifiedquire
3c4d69bbfd
(cargo-release) version 0.1.1
2019-02-20 21:06:39 +01:00
dignifiedquire
70a63fae8e
chore: fixup cargo.toml
2019-02-20 21:06:30 +01:00
dignifiedquire
d1293353eb
chore: cleanup cargo.toml
2019-02-20 21:04:57 +01:00
Friedel Ziegelmayer
9d983335d8
Merge pull request #8 from RustCrypto/improvements
...
Improvements
2019-02-20 21:04:23 +01:00
dignifiedquire
057f77535d
docs: add basic example for encryption and decryption
2019-02-20 20:54:35 +01:00
dignifiedquire
e825ced1a2
docs(readme): update status
2019-02-20 20:29:49 +01:00
dignifiedquire
00bdcfa3f5
feat: implement serde serialization and deserialization
2019-02-20 20:28:02 +01:00
dignifiedquire
9a3113e07c
feat: implement clear on drop for private key parts
2019-02-20 19:17:49 +01:00
dignifiedquire
f99d2160c1
chore: update dependencies
2019-02-20 18:50:46 +01:00
Friedel Ziegelmayer
33e007b4d5
Merge pull request #6 from RustCrypto/fix-travis
...
chore(ci): update minimal rust version
2019-01-23 14:58:57 +01:00
dignifiedquire
8e1041befd
chore(ci): update minimal rust version
2019-01-23 11:09:13 +01:00
李伟
0172d0bf4a
fix: update code to match latest master
of num-bigint-dig
...
Fixed up some type errors between BigInt and BigUint.
2019-01-23 11:07:56 +01:00
dignifiedquire
2608f42640
refactor: remove prime and math tooling now in num_bigint
2019-01-15 21:05:45 +01:00
dignifiedquire
7654e6094b
feat: generalize mod_inverse
2018-12-13 09:38:06 +01:00