332 Commits

Author SHA1 Message Date
Brian Smith
521218897a 0.16.13: Update all dependencies. 2020-04-29 12:20:20 -05:00
Sean Klein
0feaae0ad3 [cargo] Remove no-op 'exclude' field
From
https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields

"The options are mutually exclusive: setting include will override an
exclude."

I agree to license my contributions to each file under the terms given
at the top of each file I changed.
2020-04-27 19:40:52 -05:00
Brian Smith
0ac6ca6cbc Switch dev_urandom_fallback to use once_cell instead of lazy_static!.
This is a step towards removing the spin-rs dependency. `lazy_static!`'s
conditial use of spin-rs based on a feature flag was particularly problematic
because often other dependencies would enable that feature flag even in cases
where the `std::sync::Once` implementation was preferable.
2020-04-27 18:51:23 -05:00
Brian Smith
7fc553dbbb 0.16.12. 2020-03-27 11:38:53 -05:00
Brian Smith
da4f7ba2b9 0.16.11. 2020-02-04 12:53:19 -06:00
Brian Smith
5a131ff450 0.16.10. 2020-01-31 10:44:05 -06:00
Brian Smith
56cddd73d2 0.16.9. 2019-08-30 05:48:12 -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
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
5d32f5bf75 0.16.5 2019-07-26 10:22:50 -10:00
Brian Smith
68f1509f9f 0.16.4 2019-07-24 17:58:09 -10:00
Brian Smith
85007f838f 0.16.3 2019-07-24 13:37:17 -10:00
Brian Smith
d8724ef357 0.16.2 2019-07-23 10:27:19 -10:00
Brian Smith
e6102197e4 0.16.1 2019-07-22 12:26:25 -10:00
Brian Smith
ab18f6ebcd 0.16.0 2019-07-18 15:34:17 -10:00
Brian Smith
4c392ad338 Remove the libc dependency for most platforms. 2019-07-17 14:44:28 -10:00
Brian Smith
bc22053bdf Make std a non-default feature.
Dont enable `std`-based functionality unless requested. This requires removing
the `std` feature dependency from `dev_urandom_fallback` and `test_logging`.
Tweak the meaning of `test_logging` to keep this tractable.
2019-07-15 22:03:17 -10:00
Brian Smith
dd60763446 Use untrusted 0.7.0. 2019-07-15 17:49:40 -10:00
Brian Smith
70e5d96a37 FreeBSD, NetBSD, OpenBSD, Solaris: Use /dev/urandom. 2019-07-15 17:30:40 -10:00
Brian Smith
d9044d6f57 0.15.0 2019-07-14 08:51:19 -10:00
Brian Smith
b582a420ce 0.15.0-alpha6. 2019-07-13 15:14:10 -10:00
Brian Smith
2903aeca8a 0.15.0-alpha4 2019-07-11 19:47:52 -10:00
Brian Smith
feabcc7705 Upgrade to wasm-bindgen 0.2.48. 2019-07-11 19:34:29 -10:00
Brian Smith
9c42fa187d Allow tests to be run when alloc is enabled without std. 2019-07-09 21:15:18 -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
d367526a27 Remove 32-bit x86 SHA-2 assembly code. 2019-07-09 17:25:46 -10:00
Brian Smith
957934286d 0.15.0-alpha3. 2019-07-03 12:43:53 -10:00
Brian Smith
d8921f39a2 0.15.0-alpha2. 2019-07-03 12:20:01 -10:00
Brian Smith
f86911d3b5 Use untrusted 0.7.0-alpha1. 2019-07-03 12:20:01 -10:00
Brian Smith
89a56db450 Fix typo in Cargo.toml. 2019-07-03 12:20:00 -10:00
Brian Smith
c53955ea8a Initial wasm32-unknown-unknown support. 2019-07-03 12:20:00 -10:00
Brian Smith
33bffc7cef Minimize and update dependencies. 2019-07-03 08:28:42 -10:00
Brian Smith
928f936c7b Move rsa::bigint to arithmetic/bigint. 2019-06-30 16:57:16 -10:00
Brian Smith
b1b75a241f Replace GFp_block128_xor with Rust code. 2019-06-14 14:36:59 -10:00
Brian Smith
7633902d7c Move ring::rand tests to tests/rand_tests.rs. 2019-06-13 10:01:06 -10:00
Brian Smith
efb6ede3cc Limit dev_urandom_fallback to Linux. 2019-06-13 09:34:40 -10:00
Brian Smith
d9633e27f4 Update to the latest (unreleased) untrusted. 2019-03-14 19:39:56 -10:00
Brian Smith
ca9d638ca0 Update build.rs and Cargo.toml for the Fiat file renaming. 2019-02-12 10:26:20 -10:00
Brian Smith
fd06534dcd Merge BoringSSL 32e59d2: Switch to new fiat pipeline. 2019-02-12 09:56:51 -10:00
Brian Smith
ef85df4781 0.14.6 2019-02-08 09:35:42 -10:00
Brian Smith
5dc4dda179 Use libc's types instead of defining our own ring::c.
As far as I know, `libc` is available for every target now. Especially
since the introduction of `bssl::Result` we hardly reference these
types, other than `size_t`. This will help get rid of crypto/crypto.c.
2019-02-05 19:41:48 -10:00
Brian Smith
e53936a348 On Windows, use winapi RtlGenRandom and associated types.
Now that Cargo can do target-specific dependencies, don't bother defining
this stuff ourselves.
2019-02-05 19:41:48 -10:00
Brian Smith
4a8140fa01 0.14.5. 2019-02-02 16:06:07 -10:00
Brian Smith
050d61647a 0.14.4 2019-01-31 10:12:25 -10:00
Brian Smith
154ca296ce Replace libstd with spin crate in cpu::cache_detected_features.
Eliminate one of the two remaining problems with `#![no_std]` support
and reduce platform variance.
2019-01-30 23:18:48 -10:00
Brian Smith
c7f0eadf0f Move ARM CPU feature caching from C to Rust.
Some of the targets in Rust's `cross` toolchains have old libc headers
that don't have sys/auxv.h, and we want to do this in Rust anyway.

Unfortunately, in the process of doing so, I found out that
`libc::getauxval()` isn't available in enough places either, so we skip
dealing with *that* too.
2019-01-28 14:33:31 -10:00
Brian Smith
387a6965ff Move remaining AEAD feature detection from C to Rust. 2019-01-28 14:33:31 -10:00
Brian Smith
eec4d82f95 0.14.3. 2019-01-22 16:35:11 -10:00
Brian Smith
1445fa4367 Improve and test various key type Clone/Debug implementations. 2019-01-19 19:56:02 -10:00