Brian Smith
0a0c375b76
ci: Address Clippy 1.65 concerns.
2022-11-03 10:30:09 -07:00
Brian Smith
2accae1e7a
ECDSA: Add RNG as an input parameter to EcdsaKeyPair::from_pkcs8
.
...
Resolve an old TODO now that we can make breaking API changes.
2021-05-04 15:17:54 -07:00
Brian Smith
b9d7d089d9
Remove #![forbid(warnings)]
; reply on Clippy in CI/CD instead.
...
The newest Rust Nightly is getting stricter about `forbid(warnings)`
which breaks the build.
Use "deny" instead of "forbid". And only deny when running Clippy in
CI/CD, so that when hacking on *ring* we don't have to deal with
warnings right away; we now only have to deal with them when we're ready
to submit a change to be merged.
2020-12-03 17:40:33 -08:00
Brian Smith
1cfafdcab7
ECDSA tests: Tell clippy to allow an intetionally redundant clone.
2020-12-03 17:40:33 -08:00
Brian Smith
d57c8d56a2
Signature tests: Remove redundant clones found by Clippy.
2020-12-03 17:40:33 -08:00
Brian Smith
524c37bace
ECDSA/ED25519 tests: Improve Copy/Clone tests based on Clippy's feedback.
2020-11-11 16:46:41 -08:00
Brian Smith
432670f135
Implement ECDSA nonce hardening to pretect against bad PRNG.
2020-05-29 21:43:35 -05:00
Brian Smith
f15828a7a6
Stop disabling legacy_directory_ownership to fix Rust 1.41 beta channel builds.
2019-12-23 18:41:07 -06:00
Brian Smith
b791dd6585
Remove deprecated signature::verify
API.
2019-07-15 17:52:27 -10:00
Brian Smith
7071dda618
Replace use_heap
feature with alloc
and std
features; use alloc
crate.
2019-07-09 21:15:18 -10:00
Brian Smith
7d36600ec8
Use alloc
instead of std
when possible.
2019-07-09 21:15:18 -10:00
Brian Smith
f0d4d21e85
Use stable rustfmt.
2019-04-10 09:33:38 -10:00
Brian Smith
cfe46261e8
Remove untrusted
from the ring::signature
signing API.
2019-04-05 16:21:41 -10:00
Brian Smith
306d163613
Refactor ring::signature
verification API.
...
Introduce `UnparsedPublicKey`. Remove public use of `untrusted::Input`.
Replace `signature::verify()` with `UnparsedPublicKey::verify()`.
2019-04-05 16:21:40 -10:00
Brian Smith
d712f6493b
Avoid unnecessarily-named explicit lifetime parameters.
2019-03-06 14:04:39 -10:00
Brian Smith
ab0726d0cd
Embed test data into test executables.
...
Embed test data files into test executables so that file I/O isn't
necessary during tests. This allows the tests to run on platforms that
don't have file I/O. It also makes it easier to run the tests on a
separate (virtual) machine from the build machine since the test
automation no longer needs to keep track of the test files.
2019-02-02 13:21:02 -10:00
Brian Smith
1445fa4367
Improve and test various key type Clone
/Debug
implementations.
2019-01-19 19:56:02 -10:00
Brian Smith
b0f8ca2532
Rename ECDSAKeyPair
to EcdsaKeyPair
.
2018-12-21 15:21:50 -10:00
Brian Smith
0c407e4c31
Remove failed attempt at a generic public key signing API.
2018-12-21 15:21:50 -10:00
Brian Smith
2843931bb7
Switch to Rust 2018 Edition.
...
Switch to Rust 2018 Edition. Fix up some build breakage for different
configurations that were found in the process of testing this,
particularly `--no-default-features`.
2018-12-08 21:39:17 -10:00
Brian Smith
9968baa55d
Report some details of why asymmetric keys were rejected.
2018-11-28 11:52:18 -10:00
Brian Smith
6e98bf0568
Reformat tests/, except AEAD tests.
...
AEAD tests will be reformatted later.
2018-11-15 16:17:49 -10:00
Brian Smith
d249aa57a0
Make ECDSA signing known-answer tests internal unit tests.
...
In the near future these tests will use an internal interface that
won't be available from outside the crate.
2018-06-11 14:03:10 -10:00
Brian Smith
e5a4fe96f7
Initial ECDSA signing implementation.
...
Nonce reuse hardening and more tests will be added later.
2018-05-31 08:18:58 -10:00
Brian Smith
72f5e2ebf0
Avoid trying to disable removed fat_ptr_transmutes
antifeature.
...
The antifeature was removed from rustc in 2014, according to a new warning,
so this was doing nothing.
2017-12-24 09:50:10 -10:00
Brian Smith
7b7d562e76
Be stricter with lints in the rest of tests/*.rs.
2017-08-27 12:31:17 -10:00
Brian Smith
eb3843e4dd
Add PKCS#8 generation to ECDSAKeyPair
.
2017-05-17 09:05:46 -10:00
Brian Smith
d7ee87e785
Add ring::signature::ECDSAKeyPair
with PKCS#8 import.
2017-05-16 18:14:15 -10:00
Brian Smith
0124565a52
Move ECDSA integration/functional tests to tests/.
2017-05-13 00:34:45 -10:00