• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[package]
2authors = ["Brian Smith <brian@briansmith.org>"]
3build = "build.rs"
4categories = ["cryptography", "no-std"]
5description = "Safe, fast, small crypto using Rust."
6documentation = "https://briansmith.org/rustdoc/ring/"
7edition = "2018"
8keywords = ["crypto", "cryptography", "rand", "ECC", "RSA"]
9license-file = "LICENSE"
10name = "ring"
11readme = "doc/link-to-readme.md"
12repository = "https://github.com/briansmith/ring"
13version = "0.16.20"
14
15# Prevent multiple versions of *ring* from being linked into the same program.
16links = "ring-asm"
17
18include = [
19    "LICENSE",
20    "Cargo.toml",
21
22    "pregenerated/*",
23
24    "build.rs",
25
26    "crypto/chacha/asm/chacha-armv4.pl",
27    "crypto/chacha/asm/chacha-armv8.pl",
28    "crypto/chacha/asm/chacha-x86.pl",
29    "crypto/chacha/asm/chacha-x86_64.pl",
30    "crypto/cipher_extra/test/aes_128_gcm_siv_tests.txt",
31    "crypto/cipher_extra/test/aes_256_gcm_siv_tests.txt",
32    "crypto/constant_time_test.c",
33    "crypto/cpu-intel.c",
34    "crypto/crypto.c",
35    "crypto/curve25519/asm/x25519-asm-arm.S",
36    "crypto/curve25519/curve25519.c",
37    "crypto/curve25519/curve25519_tables.h",
38    "crypto/curve25519/internal.h",
39    "crypto/fipsmodule/aes/aes_nohw.c",
40    "crypto/fipsmodule/aes/asm/aesni-x86.pl",
41    "crypto/fipsmodule/aes/asm/aesni-x86_64.pl",
42    "crypto/fipsmodule/aes/asm/aesv8-armx.pl",
43    "crypto/fipsmodule/aes/asm/bsaes-armv7.pl",
44    "crypto/fipsmodule/aes/asm/bsaes-x86_64.pl",
45    "crypto/fipsmodule/aes/asm/vsaes-armv7.pl",
46    "crypto/fipsmodule/aes/asm/vpaes-x86.pl",
47    "crypto/fipsmodule/aes/asm/vpaes-x86_64.pl",
48    "crypto/fipsmodule/bn/asm/armv4-mont.pl",
49    "crypto/fipsmodule/bn/asm/armv8-mont.pl",
50    "crypto/fipsmodule/bn/asm/x86-mont.pl",
51    "crypto/fipsmodule/bn/asm/x86_64-mont.pl",
52    "crypto/fipsmodule/bn/asm/x86_64-mont5.pl",
53    "crypto/fipsmodule/bn/internal.h",
54    "crypto/fipsmodule/bn/montgomery.c",
55    "crypto/fipsmodule/bn/montgomery_inv.c",
56    "crypto/fipsmodule/ec/asm/ecp_nistz256-armv4.pl",
57    "crypto/fipsmodule/ec/asm/ecp_nistz256-armv8.pl",
58    "crypto/fipsmodule/ec/asm/ecp_nistz256-x86.pl",
59    "crypto/fipsmodule/ec/asm/p256-x86_64-asm.pl",
60    "crypto/fipsmodule/ec/ecp_nistz.c",
61    "crypto/fipsmodule/ec/ecp_nistz.h",
62    "crypto/fipsmodule/ec/ecp_nistz256.c",
63    "crypto/fipsmodule/ec/ecp_nistz256.h",
64    "crypto/fipsmodule/ec/ecp_nistz256_table.inl",
65    "crypto/fipsmodule/ec/ecp_nistz384.h",
66    "crypto/fipsmodule/ec/ecp_nistz384.inl",
67    "crypto/fipsmodule/ec/gfp_p256.c",
68    "crypto/fipsmodule/ec/gfp_p384.c",
69    "crypto/fipsmodule/ecdsa/ecdsa_verify_tests.txt",
70    "crypto/fipsmodule/modes/asm/aesni-gcm-x86_64.pl",
71    "crypto/fipsmodule/modes/asm/ghash-armv4.pl",
72    "crypto/fipsmodule/modes/asm/ghash-x86.pl",
73    "crypto/fipsmodule/modes/asm/ghash-x86_64.pl",
74    "crypto/fipsmodule/modes/asm/ghashv8-armx.pl",
75    "crypto/fipsmodule/sha/asm/sha256-armv4.pl",
76    "crypto/fipsmodule/sha/asm/sha512-armv4.pl",
77    "crypto/fipsmodule/sha/asm/sha512-armv8.pl",
78    "crypto/fipsmodule/sha/asm/sha512-x86_64.pl",
79    "crypto/internal.h",
80    "crypto/limbs/limbs.c",
81    "crypto/limbs/limbs.h",
82    "crypto/limbs/limbs.inl",
83    "crypto/mem.c",
84    "crypto/perlasm/arm-xlate.pl",
85    "crypto/perlasm/x86asm.pl",
86    "crypto/perlasm/x86gas.pl",
87    "crypto/perlasm/x86nasm.pl",
88    "crypto/perlasm/x86_64-xlate.pl",
89    "crypto/poly1305/internal.h",
90    "crypto/poly1305/poly1305.c",
91    "crypto/poly1305/poly1305_arm.c",
92    "crypto/poly1305/poly1305_arm_asm.S",
93    "crypto/poly1305/poly1305_vec.c",
94    "crypto/cipher_extra/asm/chacha20_poly1305_x86_64.pl",
95    "doc/link-to-readme.md",
96    "examples/checkdigest.rs",
97    "include/GFp/aes.h",
98    "include/GFp/arm_arch.h",
99    "include/GFp/base.h",
100    "include/GFp/check.h",
101    "include/GFp/cpu.h",
102    "include/GFp/mem.h",
103    "include/GFp/poly1305.h",
104    "include/GFp/type_check.h",
105    "src/aead.rs",
106    "src/aead/aes.rs",
107    "src/aead/aes_gcm.rs",
108    "src/aead/aes_tests.txt",
109    "src/aead/block.rs",
110    "src/aead/chacha.rs",
111    "src/aead/chacha_tests.txt",
112    "src/aead/chacha20_poly1305.rs",
113    "src/aead/chacha20_poly1305_openssh.rs",
114    "src/aead/counter.rs",
115    "src/aead/gcm.rs",
116    "src/aead/gcm/gcm_nohw.rs",
117    "src/aead/iv.rs",
118    "src/aead/nonce.rs",
119    "src/aead/poly1305.rs",
120    "src/aead/poly1305_test.txt",
121    "src/aead/quic.rs",
122    "src/aead/shift.rs",
123    "src/agreement.rs",
124    "src/arithmetic.rs",
125    "src/arithmetic/bigint.rs",
126    "src/arithmetic/bigint_elem_exp_consttime_tests.txt",
127    "src/arithmetic/bigint_elem_exp_vartime_tests.txt",
128    "src/arithmetic/bigint_elem_mul_tests.txt",
129    "src/arithmetic/bigint_elem_reduced_once_tests.txt",
130    "src/arithmetic/bigint_elem_reduced_tests.txt",
131    "src/arithmetic/bigint_elem_squared_tests.txt",
132    "src/arithmetic/constant.rs",
133    "src/arithmetic/montgomery.rs",
134    "src/array.rs",
135    "src/bits.rs",
136    "src/bssl.rs",
137    "src/c.rs",
138    "src/constant_time.rs",
139    "src/cpu.rs",
140    "src/data/alg-rsa-encryption.der",
141    "src/debug.rs",
142    "src/digest.rs",
143    "src/digest/sha1.rs",
144    "src/digest/sha2.rs",
145    "src/ec/curve25519/ed25519/digest.rs",
146    "src/ec/curve25519/ed25519.rs",
147    "src/ec/curve25519/ed25519/signing.rs",
148    "src/ec/curve25519/ed25519/verification.rs",
149    "src/ec/curve25519/ed25519/ed25519_pkcs8_v2_template.der",
150    "src/ec/curve25519.rs",
151    "src/ec/curve25519/ops.rs",
152    "src/ec/curve25519/scalar.rs",
153    "src/ec/curve25519/x25519.rs",
154    "src/ec.rs",
155    "src/ec/keys.rs",
156    "src/ec/suite_b/curve.rs",
157    "src/ec/suite_b/ecdh.rs",
158    "src/ec/suite_b/ecdsa/digest_scalar.rs",
159    "src/ec/suite_b/ecdsa.rs",
160    "src/ec/suite_b/ecdsa/signing.rs",
161    "src/ec/suite_b/ecdsa/verification.rs",
162    "src/ec/suite_b/ecdsa/ecdsa_digest_scalar_tests.txt",
163    "src/ec/suite_b/ecdsa/ecPublicKey_p256_pkcs8_v1_template.der",
164    "src/ec/suite_b/ecdsa/ecPublicKey_p384_pkcs8_v1_template.der",
165    "src/ec/suite_b/ecdsa/ecdsa_sign_asn1_tests.txt",
166    "src/ec/suite_b/ecdsa/ecdsa_sign_fixed_tests.txt",
167    "src/ec/suite_b.rs",
168    "src/ec/suite_b/ops/elem.rs",
169    "src/ec/suite_b/ops.rs",
170    "src/ec/suite_b/ops/p256.rs",
171    "src/ec/suite_b/ops/p256_elem_mul_tests.txt",
172    "src/ec/suite_b/ops/p256_elem_neg_tests.txt",
173    "src/ec/suite_b/ops/p256_elem_sum_tests.txt",
174    "src/ec/suite_b/ops/p256_point_double_tests.txt",
175    "src/ec/suite_b/ops/p256_point_mul_base_tests.txt",
176    "src/ec/suite_b/ops/p256_point_mul_serialized_tests.txt",
177    "src/ec/suite_b/ops/p256_point_mul_tests.txt",
178    "src/ec/suite_b/ops/p256_point_sum_mixed_tests.txt",
179    "src/ec/suite_b/ops/p256_point_sum_tests.txt",
180    "src/ec/suite_b/ops/p256_scalar_mul_tests.txt",
181    "src/ec/suite_b/ops/p256_scalar_square_tests.txt",
182    "src/ec/suite_b/ops/p384.rs",
183    "src/ec/suite_b/ops/p384_elem_div_by_2_tests.txt",
184    "src/ec/suite_b/ops/p384_elem_mul_tests.txt",
185    "src/ec/suite_b/ops/p384_elem_neg_tests.txt",
186    "src/ec/suite_b/ops/p384_elem_sum_tests.txt",
187    "src/ec/suite_b/ops/p384_point_double_tests.txt",
188    "src/ec/suite_b/ops/p384_point_mul_base_tests.txt",
189    "src/ec/suite_b/ops/p384_point_mul_tests.txt",
190    "src/ec/suite_b/ops/p384_point_sum_tests.txt",
191    "src/ec/suite_b/ops/p384_scalar_mul_tests.txt",
192    "src/ec/suite_b/private_key.rs",
193    "src/ec/suite_b/public_key.rs",
194    "src/ec/suite_b/suite_b_public_key_tests.txt",
195    "src/endian.rs",
196    "src/error.rs",
197    "src/hkdf.rs",
198    "src/hmac.rs",
199    "src/hmac_generate_serializable_tests.txt",
200    "src/io.rs",
201    "src/io/der.rs",
202    "src/io/der_writer.rs",
203    "src/io/positive.rs",
204    "src/io/writer.rs",
205    "src/lib.rs",
206    "src/limb.rs",
207    "src/endian.rs",
208    "src/pbkdf2.rs",
209    "src/pkcs8.rs",
210    "src/polyfill.rs",
211    "src/polyfill/convert.rs",
212    "src/rand.rs",
213    "src/rsa/convert_nist_rsa_test_vectors.py",
214    "src/rsa.rs",
215    "src/rsa/padding.rs",
216    "src/rsa/random.rs",
217    "src/rsa/rsa_pss_padding_tests.txt",
218    "src/rsa/signature_rsa_example_private_key.der",
219    "src/rsa/signature_rsa_example_public_key.der",
220    "src/rsa/signing.rs",
221    "src/rsa/verification.rs",
222    "src/signature.rs",
223    "src/test.rs",
224    "src/test_1_syntax_error_tests.txt",
225    "src/test_1_tests.txt",
226    "src/test_3_tests.txt",
227    "tests/aead_aes_128_gcm_tests.txt",
228    "tests/aead_aes_256_gcm_tests.txt",
229    "tests/aead_chacha20_poly1305_tests.txt",
230    "tests/aead_chacha20_poly1305_openssh_tests.txt",
231    "tests/aead_tests.rs",
232    "tests/agreement_tests.rs",
233    "tests/agreement_tests.txt",
234    "tests/constant_time_tests.rs",
235    "tests/digest_tests.rs",
236    "tests/digest_tests.txt",
237    "tests/ecdsa_from_pkcs8_tests.txt",
238    "tests/ecdsa_tests.rs",
239    "tests/ecdsa_test_private_key_p256.p8",
240    "tests/ecdsa_test_public_key_p256.der",
241    "tests/ecdsa_test_public_key_p256_debug.txt",
242    "tests/ecdsa_sign_asn1_tests.txt",
243    "tests/ecdsa_sign_fixed_tests.txt",
244    "tests/ecdsa_verify_asn1_tests.txt",
245    "tests/ecdsa_verify_fixed_tests.txt",
246    "tests/ed25519_from_pkcs8_tests.txt",
247    "tests/ed25519_from_pkcs8_unchecked_tests.txt",
248    "tests/ed25519_tests.rs",
249    "tests/ed25519_tests.txt",
250    "tests/ed25519_test_private_key.bin",
251    "tests/ed25519_test_private_key.p8",
252    "tests/ed25519_test_public_key.bin",
253    "tests/ed25519_test_public_key.der",
254    "tests/hkdf_tests.rs",
255    "tests/hkdf_tests.txt",
256    "tests/hmac_tests.rs",
257    "tests/hmac_tests.txt",
258    "tests/pbkdf2_tests.rs",
259    "tests/pbkdf2_tests.txt",
260    "tests/quic_aes_128_tests.txt",
261    "tests/quic_aes_256_tests.txt",
262    "tests/quic_chacha20_tests.txt",
263    "tests/quic_tests.rs",
264    "tests/rand_tests.rs",
265    "tests/rsa_from_pkcs8_tests.txt",
266    "tests/rsa_pkcs1_sign_tests.txt",
267    "tests/rsa_pkcs1_verify_tests.txt",
268    "tests/rsa_primitive_verify_tests.txt",
269    "tests/rsa_pss_sign_tests.txt",
270    "tests/rsa_pss_verify_tests.txt",
271    "tests/rsa_tests.rs",
272    "tests/rsa_test_private_key_2048.p8",
273    "tests/rsa_test_public_key_2048.der",
274    "tests/rsa_test_public_key_2048_debug.txt",
275    "tests/signature_tests.rs",
276    "third_party/fiat/curve25519_32.h",
277    "third_party/fiat/curve25519_64.h",
278    "third_party/fiat/LICENSE",
279    "third_party/fiat/make_curve25519_tables.py",
280    "third_party/NIST/SHAVS/SHA1LongMsg.rsp",
281    "third_party/NIST/SHAVS/SHA1Monte.rsp",
282    "third_party/NIST/SHAVS/SHA1ShortMsg.rsp",
283    "third_party/NIST/SHAVS/SHA224LongMsg.rsp",
284    "third_party/NIST/SHAVS/SHA224Monte.rsp",
285    "third_party/NIST/SHAVS/SHA224ShortMsg.rsp",
286    "third_party/NIST/SHAVS/SHA256LongMsg.rsp",
287    "third_party/NIST/SHAVS/SHA256Monte.rsp",
288    "third_party/NIST/SHAVS/SHA256ShortMsg.rsp",
289    "third_party/NIST/SHAVS/SHA384LongMsg.rsp",
290    "third_party/NIST/SHAVS/SHA384Monte.rsp",
291    "third_party/NIST/SHAVS/SHA384ShortMsg.rsp",
292    "third_party/NIST/SHAVS/SHA512LongMsg.rsp",
293    "third_party/NIST/SHAVS/SHA512Monte.rsp",
294    "third_party/NIST/SHAVS/SHA512ShortMsg.rsp",
295]
296
297[package.metadata.docs.rs]
298all-features = true
299
300[lib]
301name = "ring"
302
303[dependencies]
304untrusted = { version = "0.7.1" }
305
306[target.'cfg(any(target_arch = "x86",target_arch = "x86_64", all(any(target_arch = "aarch64", target_arch = "arm"), any(target_os = "android", target_os = "fuchsia", target_os = "linux"))))'.dependencies]
307spin = { version = "0.5.2", default-features = false }
308
309[target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies]
310libc = { version = "0.2.69", default-features = false }
311once_cell = { version = "1.5.2", default-features = false, features=["std"], optional = true }
312
313[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "illumos", target_os = "netbsd", target_os = "openbsd", target_os = "solaris"))'.dependencies]
314once_cell = { version = "1.5.2", default-features = false, features=["std"] }
315
316[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown", target_env = ""))'.dependencies]
317web-sys = { version = "0.3.37", default-features = false, features = ["Crypto", "Window"] }
318
319[target.'cfg(target_os = "windows")'.dependencies]
320winapi = { version = "0.3.8", default-features = false, features = ["ntsecapi", "wtypesbase"] }
321
322[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
323wasm-bindgen-test = { version = "0.3.18", default-features = false }
324
325[target.'cfg(any(unix, windows))'.dev-dependencies]
326libc = { version = "0.2.80", default-features = false }
327
328# Keep this in sync with `[dependencies]` in pregenerate_asm/Cargo.toml.
329[build-dependencies]
330cc = { version = "1.0.62", default-features = false }
331
332[features]
333# These features are documented in the top-level module's documentation.
334default = ["alloc", "dev_urandom_fallback"]
335alloc = []
336dev_urandom_fallback = ["once_cell"]
337internal_benches = []
338slow_tests = []
339std = ["alloc"]
340test_logging = []
341wasm32_c = []
342
343# XXX: debug = false because of https://github.com/rust-lang/rust/issues/34122
344
345[profile.bench]
346opt-level = 3
347debug = false
348rpath = false
349lto = true
350debug-assertions = false
351codegen-units = 1
352
353[profile.release]
354opt-level = 3
355debug = false
356rpath = false
357lto = true
358debug-assertions = false
359codegen-units = 1
360