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
f6c0e0d1ea
cargo fmt
.
2019-12-23 15:25:24 -06:00
lzutao
c250e3125e
Use array::iter
...
See clippy::into_iter lint and https://github.com/rust-lang/rust/pull/65819
2019-12-23 12:42:49 -06:00
Lukas Kalbertodt
4455a4e987
Remove #[inline]
attributes on function prototypes
...
These attributes now lead to a compile error on nightly.
2019-12-23 12:05:41 -06:00
Brian Smith
56cddd73d2
0.16.9.
2019-08-30 05:48:12 -10:00
Brian Smith
7adacd3070
Revert "Add support for random nonce generation to ring::aead
."
...
This reverts commit 88d5aa7fd072d50be716abae4339be8463d665bb. It was a breaking change
in 0.16.8, which wasn't intended. Defaulting the parameter worked for many projects but
apparently not `biscuit` and some others.
2019-08-30 05:46:15 -10:00
Brian Smith
e7db166ca9
0.16.8: Depend on spin-rs ^0.5.2.
...
spin-rs 0.5.2 fixes a bug in `rw_lock`. That bug doesn't seem to affect *ring* based
on the bug report and the fix PR, since *ring* uses only `spin::Once` and the fix
for the bug doesn't touch `spin::Once` at all. (I manually verified `spin::Once`
doesn't depend on `spin::rw_lock` at all.) Still, upgrade so that people don't get
scared and to avoid various inconveniences.
2019-08-30 05:39:37 -10:00
Brian Smith
88d5aa7fd0
Add support for random nonce generation to ring::aead
.
2019-08-30 05:39:37 -10:00
Alessandro Ghedini
63c0364bd3
Fix typo in hkdf: Prf -> Prk
2019-08-15 08:04:03 -10:00
Brian Smith
20582aa39a
Improve labeling in Debug
implementation for LessSafeKey
.
2019-08-11 18:10:31 -10:00
Brian Smith
fe1a947b59
0.16.7: &
-> &dyn
in agreement_tests.rs to fix beta/nightly build.
2019-08-11 16:08:00 -10:00
Brian Smith
5c36a93e4d
0.16.6
2019-08-11 14:49:23 -10:00
Brian Smith
2fe7ed15d4
Improve usability of ring::agreement
.
...
Implement `Debug` and `algorithm()` accessors.
Add tests for traits.
2019-08-11 14:46:48 -10:00
Brian Smith
50c6ced350
During HKDF, call KeyType::len()
at most once.
...
This shouldn't matter at all, except that it is easier to reason about, and
potentially it is more efficient in the rare case that `KeyType::len()` is slow.
2019-08-11 14:17:26 -10:00
Brian Smith
6ec6e11ab0
Test HKDF output length error handling.
2019-08-11 14:17:26 -10:00
Brian Smith
5d32f5bf75
0.16.5
2019-07-26 10:22:50 -10:00
Brian Smith
319ee1d423
impl Clone for Prk
for Rustls.
2019-07-26 10:20:55 -10:00
Brian Smith
4234660f05
Add HKDF support for QUIC HeaderProtectionKey
.
2019-07-26 10:20:55 -10:00
Brian Smith
b9cd4f86f0
Fix outdated documentation in AEAD.
2019-07-26 10:20:55 -10:00
Brian Smith
23efff0fdd
Improve usability of agreement::UnparsedPublicKey
.
2019-07-26 10:20:51 -10:00
Brian Smith
68f1509f9f
0.16.4
2019-07-24 17:58:09 -10:00
Brian Smith
6bf65eec09
Add hkdf::Prk::new_less_safe()
.
2019-07-24 17:56:40 -10:00
Brian Smith
85007f838f
0.16.3
2019-07-24 13:37:17 -10:00
Brian Smith
1a221c9871
Expose HMAC algorithm from HKDF algorithm.
2019-07-24 13:37:16 -10:00
Brian Smith
0f1428ef66
Implement AsRef<[u8]>
for Aad<A>.
2019-07-24 12:30:20 -10:00
Brian Smith
967054e36f
Clarify NonceSequence
documentation.
2019-07-23 18:46:28 -10:00
Brian Smith
554c22232a
Further clarify AEAD documentation.
2019-07-23 18:22:02 -10:00
Brian Smith
d8724ef357
0.16.2
2019-07-23 10:27:19 -10:00
Brian Smith
524c6af2dc
Add seal_in_place_separate_tag
and `seal_in_place_append_tag
.
2019-07-23 10:25:56 -10:00
Brian Smith
467b15746a
Fix typos in documentation for LessSafeKey
.
2019-07-23 10:13:41 -10:00
Brian Smith
e6102197e4
0.16.1
2019-07-22 12:26:25 -10:00
Brian Smith
ed47ae8c67
Support clang-cl better.
2019-07-22 12:08:35 -10:00
Brian Smith
ffc0f9714e
Always use release configuration for C code in published builds.
2019-07-22 12:08:35 -10:00
Brian Smith
8943885e63
build.rs: Remove redundant Target
accessors.
2019-07-22 12:06:59 -10:00
Brian Smith
7af89ca82e
Clarify ring::aead
documentation.
2019-07-19 10:18:50 -10:00
Brian Smith
ab18f6ebcd
0.16.0
2019-07-18 15:34:17 -10:00
Brian Smith
845a0e8b8e
Simplify bounds checking in open_within()
.
...
I'm not sure we actually need the full generality of `RangeBounds`.
Generalizing this to `RangeBounds` later should be a source-compatible
change if/when we find it useful to do so. Until then, avoid supporting
untested kinds of bounds.
2019-07-17 19:26:14 -10:00
Brian Smith
76f1f76c66
Rename open_in_place
to open_overlapping
; add new open_in_place
.
2019-07-17 19:25:38 -10:00
Brian Smith
ce4953d846
Make aead::open_in_place
easier to understand.
2019-07-17 19:25:38 -10:00
Brian Smith
185da62457
Make the aead::seal_in_place
API easier to understand.
2019-07-17 19:25:38 -10:00
Brian Smith
8af770d0d3
Remove obsolete TODO in aead_test.rs.
...
The comment no longer applies since the API was changed to prevent this
type of failure using the type system.
2019-07-17 19:25:38 -10:00
Brian Smith
4c392ad338
Remove the libc dependency for most platforms.
2019-07-17 14:44:28 -10:00
Brian Smith
d94b6b58a0
Remove c::long
.
2019-07-17 14:44:28 -10:00
Brian Smith
c511d05b13
Remove c::ulong
.
2019-07-17 14:44:28 -10:00
Brian Smith
c1dfd43e87
Wait longer before timing out on Aarch64 builds too.
2019-07-17 14:10:20 -10:00
Brian Smith
bd41a21e45
Fix non-iOS ARM builds.
...
Commit 6ba0209b1d9fc4e216d94ec54a99c0ac9f6f7680 broke them.
2019-07-16 14:57:05 -10:00
Brian Smith
490f7eeb7f
derive Clone
and Debug
for SystemRandom
.
2019-07-16 11:12:08 -10:00
Brian Smith
16047a18b2
Remove ring::test::compile_time_assert_debug
.
...
It was unused by *ring*. Instead users should test the expected output
of the `Debug` implementation; that is much safer.
2019-07-16 11:12:07 -10:00
Brian Smith
897a50fc4a
cargo fmt
.
2019-07-16 11:12:01 -10:00
Brian Smith
6ba0209b1d
Stop using GFp_x25519_NEON
on iOS to match BoringSSL.
2019-07-16 10:31:41 -10:00