1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! A drop-in replacement for ring 0.17, implemented with scytale.
//!
//! This crate presents the public interface of
//! [ring](https://crates.io/crates/ring) 0.17, and does the work with
//! [scytale](https://crates.io/crates/scytale). It is not a fork: no
//! line of ring's implementation is here, and there is no C or
//! assembly to build. Code written against ring compiles against it
//! unchanged, because the library is named `ring`.
//!
//! This release presents ring 0.17's API, checked against ring 0.17.14,
//! and is tested with rustls 0.23.45 and rustls-webpki 0.103.15. The
//! version number is this crate's own, not ring's; the README keeps a
//! table of which ring each release presents.
//!
//! Switch a crate over in its own manifest:
//!
//! ```toml
//! [dependencies]
//! ring = { package = "scytale-ring", version = "0.10" }
//! ```
//!
//! That reaches the crate whose manifest it is. It cannot reach a
//! dependency that names ring itself: cargo's `[patch]` matches a
//! replacement by its real package name, which this is not.
//!
//! # Where it differs from ring
//!
//! ECDSA signatures are deterministic here (RFC 6979), where ring
//! draws a random nonce. Both verify against the other, and the
//! random source ring asks for is accepted and not used, but a test
//! that compares signature bytes with stored ones will not match.
//!
//! The minimum Rust is scytale's, 1.88, where ring's is 1.66.
extern crate alloc;
extern crate std;
/// A vector file for [`test::run`], read at compile time.