312 Commits

Author SHA1 Message Date
Poliorcetics
024a61b6ed
chore(deps): Update crypto crates
Co-authored-by: Alexis Bourget <alexis@harfanglab.fr>
2022-01-05 22:59:20 +01:00
Expyron
1ad5f1c4df
refactor: remove lazy_static dependency 2021-12-07 01:08:36 +01:00
Marcin
3b7ee867a7
docs(readme): update to match the documentation example 2021-12-06 12:35:16 +01:00
william
9d8e8e5ffa
Add missing RsaPublicKey import (#119) 2021-12-03 08:05:07 -07:00
Luca Cominardi
fd1961dfe2
feat: derive Hash for RsaPublicKey 2021-09-30 14:26:22 +02:00
Friedel Ziegelmayer
d4376e089f
Merge pull request #111 from RustCrypto/readme/use-unicode-emoji
README.md: use Unicode emoji
2021-07-27 18:23:33 +02:00
Tony Arcieri
fc9c69b988 README.md: use Unicode emoji
The `:emoji:` tags are part of GitHub Flavored Markdown and don't render
correctly on https://crates.io
2021-07-27 08:54:10 -07:00
dignifiedquire
a1c1f2b8f0 chore(rsa): release 0.5.0 2021-07-27 08:47:48 +02:00
Friedel Ziegelmayer
cd257a74aa
Merge pull request #110 from RustCrypto/fix-type-names
refactor: rename  `RSA*` to `Rsa`
2021-07-26 23:57:46 +02:00
dignifiedquire
7a1eaa0329 refactor: rename RSA* to Rsa
This matches the rust naming convention better.

Closes #24
2021-07-26 23:25:13 +02:00
Tony Arcieri
f251dee5a9
Use pkcs1 and pkcs8 crates; MSRV 1.51+ (#104)
This is an initial attempt to switch the `rsa` crate to use the `pkcs1`
and `pkcs8` crates from https://github.com/rustcrypto/utils
2021-07-26 13:57:23 -07:00
dignifiedquire
dc103e1453 chore(rsa): release 0.4.1 2021-07-26 22:45:43 +02:00
est31
12336e2467
docs(readme): only optimizing num-bigint-dig is enough to unlock most speedups 2021-07-26 22:44:31 +02:00
Zicklag
9559d99fa8
docs(readme): add Note About Key Generation Speed 2021-07-26 10:58:58 +02:00
Tony Arcieri
e4027b1b2b
rustfmt (#107)
Applies `rustfmt` (again) with the following version:

    rustfmt 1.4.37-stable (2a3635d5 2021-05-04)
2021-07-25 17:31:48 -07:00
Clenimar Souza
5d608e0de9
add NULL parameter to AlgorithmIdentifier of encoded keys (#92)
as per the RFC 8017 [1], the NULL parameter MUST be present if the OID in
AlgorithmIdentifier is `rsaEncryption`. this commit adds an explicit
NULL to the AlgorithmIdentifier so that RSA key encoded by this crate
are compliant to the RFC:

> The object identifier rsaEncryption identifies RSA public and private
> keys as defined in Appendices A.1.1 and A.1.2.  The parameters field
> has associated with this OID in a value of type AlgorithmIdentifier
> SHALL have a value of type NULL.

[1] https://tools.ietf.org/html/rfc8017#appendix-A

fixes #91
2021-07-25 16:26:18 -07:00
Patrick Amrein
9c75e90372
Add possibility to allow a different hash function for MGF mask function (#101)
* add possibility to specify different mgf1 hash

* add documentation

* fix some typos
improve wording

* remove old line
2021-07-25 16:19:34 -07:00
Tony Arcieri
130ab2d165
Remove extern crate directives (#106)
These are no longer needed as of the 2018 edition
2021-07-25 16:17:30 -07:00
Tony Arcieri
89a527c05f
rustfmt (#105)
Applies `rustfmt` with the following version:

    rustfmt 1.4.37-stable (2a3635d5 2021-05-04)
2021-07-25 14:14:18 -07:00
Friedel Ziegelmayer
79727802b4
Merge pull request #102 from RustCrypto/lock-zeroize-to-v1.3
Lock `zeroize` to v1.3
2021-07-19 22:05:27 +02:00
Tony Arcieri
2ea84ba54b Lock zeroize to v1.3
1.4 requires MSRV 1.51
2021-07-19 12:55:29 -07:00
Jesse Luehrs
366ff6eac3
fix: compile when the pem feature is disabled 2021-04-26 17:32:10 +02:00
dignifiedquire
c047ce9b3b chore(rsa): release 0.4.0 2021-03-28 19:40:33 +02:00
Friedel Ziegelmayer
3a27887844
Merge pull request #88 from littledivy/rand-0.8
chores: upgrade to rand-0.8
2021-03-28 19:39:32 +02:00
littledivy
5d3a76c429 chores: upgrade to rand-0.8 2021-03-22 10:15:28 +05:30
Friedel Ziegelmayer
616b08d94b
Merge pull request #84 from RustCrypto/badges
Add deps.rs and chat badges
2021-02-14 11:36:12 +01:00
Artyom Pavlov
4cd2b6a030
remove redundant newline 2021-02-12 22:16:46 +00:00
Artyom Pavlov
422ef53c7b
Add deps.rs and chat badges 2021-02-12 22:15:12 +00:00
Friedel Ziegelmayer
a9c5797877
Merge pull request #74 from RustCrypto/update-msrv 2021-01-04 16:30:00 +01:00
dignifiedquire
0e6431bcb2 docs(readme): add note about MSRV policy 2020-12-02 17:49:18 +01:00
dignifiedquire
55e6cc0471 fix: bump num-bigint to fix nightly compiles 2020-12-02 17:48:19 +01:00
dignifiedquire
cf044126a0 feat: remove deprecated serde1 feature 2020-12-02 17:14:21 +01:00
dignifiedquire
2012ea5323 feat: bump dependencies and MSRV to 1.44 accordingly 2020-12-02 17:14:21 +01:00
Glitch
1d8ff05d60
feat: improve OpenSSL compatibility for encoding and decoding keys 2020-12-02 14:04:30 +01:00
dependabot[bot]
f295811166
chore(deps): update simple_asn1 requirement from 0.4 to 0.5 (#69)
Updates the requirements on [simple_asn1](https://github.com/acw/simple_asn1) to permit the latest version.
- [Release notes](https://github.com/acw/simple_asn1/releases)
- [Commits](https://github.com/acw/simple_asn1/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 11:08:40 +01:00
Zicklag
c1421d0ad9
docs(readme): update with audit note 2020-11-30 11:07:40 +01:00
Tony Arcieri
f6b445b660
fix: pin subtle to 2.1.1 to avoid MSRV downgrades (#71)
Co-authored-by: Tony Arcieri <bascule@gmail.com>
Co-authored-by: dignifiedquire <me@dignifiedquire.com>
2020-11-24 06:11:56 -08:00
Amos Wenger
c2e9ccd865
Update README.md (#70) 2020-11-24 06:01:04 -08:00
Artyom Pavlov
c879eb2717
chore: add Dependabot 2020-08-18 23:55:29 +02:00
Robin Lambertz
e8152949f9
feat: nostd, core+alloc support
* No-std support

* Fix tests

* Cleanly error out when building without the alloc feature

* Run no-std tests on arm-linux-gnu target

* Fix nostd tests

* Attempt 2 at fixing nostd tests

* Fix warnings when running tests in nostd mode

* fixup! No-std support
2020-08-07 22:39:36 +02:00
Austin Abell
4274e838d1
feat: add encoding of keys to PEM 2020-07-29 12:41:53 +02:00
Jakub Konka
a649ce16e0
feat: allow for custom public exponent value in keygen
This commit adds a function to `rsa::algorithms` called
`generate_multi_prime_key_with_exp` which allows the caller
to specify a custom value for the public key exponent.

This commit also adds a convenience routine to `rsa::RSAPrivateKey`
called `new_with_exp` which allows the caller to specify the
custom value for the public key exponent as part of `rsa::RSAPrivateKey`
constructor.

Exposing the public key exponent matches an OpenSSL call
`openssl::rsa::generate_with_e` which is useful in certain
settings such when generating the signing keys for SGX enclaves.
2020-07-29 12:33:45 +02:00
Robin Lambertz
af31a45291
ci: move to github actions 2020-07-24 18:45:52 +02:00
Tony Arcieri
cda2f3987f
Merge pull request #52 from RustCrypto/readme/remove-deps-rs-badge
README.md: remove deps.rs badge
2020-06-11 12:14:56 -07:00
Tony Arcieri
267111836b README.md: remove deps.rs badge + bump MSRV badge 2020-06-11 12:07:03 -07:00
dignifiedquire
02689d1b28 chore(rsa): release 0.3.0 2020-06-11 14:13:09 +02:00
Friedel Ziegelmayer
3bd9795a34
Merge pull request #43 from RustCrypto/oaep-dig 2020-06-11 13:58:45 +02:00
dignifiedquire
a2bafc05a8 apply CR for pss implementation 2020-06-11 13:37:34 +02:00
dignifiedquire
f3e99b434d feat: update dependencies to rustcrypto 0.9 releases 2020-06-11 13:24:03 +02:00
dignifiedquire
84bfd0d9eb fix benchmarks 2020-06-11 13:20:51 +02:00