Brian Smith
c7938a4d54
Fix documentation for ECDSAVerificationAlgorithm
.
2017-05-01 14:22:45 -10:00
Brian Smith
dd500b80fd
Add missing test input file to packaged crate.
...
`cargo test -p ring` fails when running the tests from the packaged
release without this.
2017-05-01 13:34:51 -10:00
Brian Smith
023ae994bf
0.8.0.
2017-05-01 13:30:14 -10:00
Brian Smith
c4e10248df
0.8.0-alpha1.
2017-05-01 13:24:50 -10:00
Brian Smith
ad1ab02478
Remove SystemRandom::fill()
.
...
`SystemRandom` still implements `fill()`, but it must be called
through the `SecureRandom` trait now. Users of *ring* should prefer
to use `SecureRandom` whenever possible and use `SystemRandom` only
to instantiate a `SecureRandom`.
2017-05-01 13:22:38 -10:00
Brian Smith
85fcb8a2f0
Fix Cargo.toml references to refactored Curve25519 code.
2017-05-01 13:17:07 -10:00
Brian Smith
a3ad8815a3
Rename ECDSAParameters
to ECDSAVerificationAlgorithm
.
...
This is in preparation for adding `ECDSASigningAlgorithm`.
2017-05-01 13:10:24 -10:00
Brian Smith
2f4c6ea86e
Fix code coverage reports.
...
Integration tests are compiled into separate executables and each
executable needs to be run under kcov.
2017-05-01 09:16:21 -10:00
Brian Smith
7a414a5421
Replace Signature::as_slice()
with AsRef<[u8]>
implementation.
...
Make the API more consistent.
2017-05-01 03:00:22 -10:00
Brian Smith
3ebdd8c6a3
Remove non-SSE2 code from 32-bit x86 SHA-2.
2017-04-30 19:34:19 -10:00
Brian Smith
92466b427b
Remove non-SSE2 and AVX2 code from 32-bit x86 poly1305.
2017-04-30 19:34:19 -10:00
Brian Smith
0df8522638
Remove non-SSE2 32-bit x86 x86 bn_mul_mont()
code.
2017-04-30 19:34:18 -10:00
Brian Smith
aaac30f7e0
Remove non-SSE2 32-bit x86 P-256 code.
2017-04-30 19:34:17 -10:00
Brian Smith
dab5305b30
Add integration tests to the coverage report.
2017-04-30 15:25:05 -10:00
Brian Smith
e3581da4fe
Add support for deserializing RSA keys from PKCS#8.
2017-04-30 11:52:45 -10:00
Brian Smith
60867f2642
Remove GFp/err.h and clean up leftover unused bits.
2017-04-27 16:06:22 -10:00
Brian Smith
d5d285177f
Remove GFp_BN_get_positive_u64()
.
2017-04-27 15:05:44 -10:00
Brian Smith
c86906bc68
Remove GFp_BN_bin2bn()
.
2017-04-27 14:44:34 -10:00
Brian Smith
85abe846ad
Fix Appveyor build.
2017-04-27 13:28:13 -10:00
Brian Smith
3198f62cd7
Use untrusted 0.5.
2017-04-27 12:43:55 -10:00
Brian Smith
5fbc504d8d
Fix formatting (whitespace) typo.
2017-04-27 12:27:10 -10:00
Brian Smith
ede257442b
Use the new field init shorthand syntax where applicable.
2017-04-27 11:58:20 -10:00
Brian Smith
55b15b5132
Bump Rust Stable on Appveyor to 1.17.
2017-04-27 11:56:34 -10:00
Brian Smith
d18eb07d3f
Remove GFp_BN_set_word()
.
2017-04-26 17:24:44 -10:00
Brian Smith
d7d2199620
Replace GFp_BN_is_odd()
.
2017-04-26 17:24:44 -10:00
Brian Smith
3ee3b63ee0
Replace GFp_BN_is_one()
.
2017-04-26 17:24:43 -10:00
Brian Smith
68fa32053f
Replace GFp_BN_is_zero()
.
2017-04-26 17:24:42 -10:00
Brian Smith
c1ab3fe08f
Remove now-unused BIGNUM internal constants.
2017-04-26 17:24:42 -10:00
Brian Smith
08ec11041e
Replace GFp_BN_ucmp()
.
2017-04-26 17:24:41 -10:00
Brian Smith
aa6dcd5b55
Replace GFp_BN_usub()
.
2017-04-26 17:24:40 -10:00
Brian Smith
f2e5be3c00
Replace GFp_BN_uadd()
.
2017-04-26 17:17:52 -10:00
Brian Smith
8c1d54b353
Replace GFp_BN_mod_sub_quick()
.
2017-04-26 17:17:52 -10:00
Brian Smith
bff4a74a1f
Replace GFp_BN_mod_add_quick()
.
2017-04-26 17:12:28 -10:00
Brian Smith
7343db7606
ring::rsa::bigint: Zero new limbs when growing a BIGNUM
.
2017-04-26 17:12:27 -10:00
Brian Smith
caab9f0efe
Update limbs.c copyright line.
2017-04-26 13:39:26 -10:00
Brian Smith
69e0254c50
Use slice::last() to minimize array indexing and conditional logic.
2017-04-25 21:11:09 -10:00
Brian Smith
adc3d11305
Fix non-Windows build.
2017-04-25 16:49:24 -10:00
Brian Smith
94f73dfd5c
Replace GFp_BN_num_bits()
with a simpler Rust equivalent.
2017-04-25 16:18:14 -10:00
Brian Smith
f4237ce57b
GFp_BN_mod_exp_mont_consttime: Have caller pass the exponent bit length.
...
This is a step towards doing the bit length calculation in Rust.
2017-04-25 16:18:13 -10:00
Brian Smith
08abb57578
RSA: Move more of the calculation of n0 to Rust.
2017-04-25 13:13:39 -10:00
Brian Smith
b7e81ab569
RSA: Calculate RR in Rust.
2017-04-25 13:13:37 -10:00
Brian Smith
76a44de074
Don't build with warnings-as-errors when building from crates.io.
2017-04-25 10:44:53 -10:00
Brian Smith
34bb1fb8ee
Clarify which ring::rsa::bigint
stuff is used only by RSA signing.
...
This will guide upcoming refactorings.
2017-04-25 10:43:38 -10:00
Brian Smith
d020ba9511
Remove well-meaning and misleading TODO.
2017-04-25 09:19:07 -10:00
Brian Smith
40a16e4ab2
Make GFp_BN_get_positive_u64()
static.
2017-04-25 00:13:07 -10:00
Brian Smith
afe84c4ed5
Remove declaration in header file for removed GFp_BN_mod_inverse_odd()
.
2017-04-25 00:11:18 -10:00
Brian Smith
f9528db33e
Replace crypto/bn/random.c with Rust code.
2017-04-25 00:10:02 -10:00
Brian Smith
0f8fe6ef36
Remove GFp_BN_equal_consttime()
.
2017-04-24 23:38:50 -10:00
Brian Smith
44cbfa9ebf
Remove BIGNUM::neg
: BIGNUM
s are now always nonnegative/unsigned.
...
Note that in each place where the value of `neg` was changed for some
`BIGNUM`, either it is set to zero (not negative), the same value as
another `BIGNUM`'s `neg` value, or to the XOR of two `BIGNUM`'s `neg`
values. Thus, there was no way the `neg` flag could ever be set to a
nonzero value.
2017-04-24 23:04:31 -10:00
Brian Smith
66c4481b62
fix
2017-04-24 23:02:16 -10:00