Skip to content

Commit e38553f

Browse files
feat: update dependencies
1 parent fcd1e53 commit e38553f

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ language: rust
22

33
matrix:
44
include:
5-
- rust: 1.31.0
5+
- rust: 1.36.0
66
- rust: stable
77
- rust: nightly
88
env: TRAVIS_NIGHTLY=true

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ categories = ["cryptography"]
1212
readme = "README.md"
1313

1414
[dependencies]
15-
num-bigint = { version = "0.5", features = ["rand", "i128", "u64_digit", "prime", "zeroize"], package = "num-bigint-dig" }
15+
num-bigint = { version = "0.6", features = ["rand", "i128", "u64_digit", "prime", "zeroize"], package = "num-bigint-dig" }
1616
num-traits = "0.2.6"
1717
num-integer = "0.1.39"
1818
num-iter = "0.1.37"
1919
lazy_static = "1.3.0"
20-
rand = "0.6.5"
20+
rand = "0.7.0"
2121
byteorder = "1.3.1"
2222
failure = "0.1.5"
2323
subtle = "2.0.0"
2424

2525
[dependencies.zeroize]
26-
version = "0.10.1"
26+
version = "1.1.0"
2727
features = ["alloc", "zeroize_derive"]
2828

2929
[dependencies.serde]
@@ -33,11 +33,12 @@ default-features = false
3333
features = ["std", "derive"]
3434

3535
[dev-dependencies]
36-
base64 = "0.10.1"
36+
base64 = "0.11.0"
3737
sha-1 = "0.8.1"
3838
sha2 = "0.8.0"
3939
hex = "0.4.0"
4040
serde_test = "1.0.89"
41+
rand_xorshift = "0.2.0"
4142

4243

4344
[[bench]]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# RSA
22
[![crates.io](https://img.shields.io/crates/v/rsa.svg)](https://crates.io/crates/rsa) [![Documentation](https://docs.rs/rsa/badge.svg)](https://docs.rs/rsa) [![Build Status](https://travis-ci.org/RustCrypto/RSA.svg?branch=master)](https://travis-ci.org/RustCrypto/RSA) [![dependency status](https://deps.rs/repo/github/RustCrypto/RSA/status.svg)](https://deps.rs/repo/github/RustCrypto/RSA)
3+
![minimum rustc 1.36](https://img.shields.io/badge/rustc-1.36+-red.svg)
34

45
A portable RSA implementation in pure Rust.
56

@@ -14,7 +15,7 @@ extern crate rand;
1415
use rsa::{PublicKey, RSAPrivateKey, PaddingScheme};
1516
use rand::rngs::OsRng;
1617

17-
let mut rng = OsRng::new().expect("no secure randomness available");
18+
let mut rng = OsRng;
1819
let bits = 2048;
1920
let key = RSAPrivateKey::new(&mut rng, bits).expect("failed to generate a key");
2021

src/key.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,8 @@ mod tests {
578578
#[test]
579579
#[cfg(feature = "serde1")]
580580
fn test_serde() {
581-
use rand::{SeedableRng, XorShiftRng};
581+
use rand::SeedableRng;
582+
use rand_xorshift::XorShiftRng;
582583
use serde_test::{assert_tokens, Token};
583584

584585
let mut rng = XorShiftRng::from_seed([1; 16]);

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! use rsa::{PublicKey, RSAPrivateKey, PaddingScheme};
1212
//! use rand::rngs::OsRng;
1313
//!
14-
//! let mut rng = OsRng::new().expect("no secure randomness available");
14+
//! let mut rng = OsRng;
1515
//! let bits = 2048;
1616
//! let key = RSAPrivateKey::new(&mut rng, bits).expect("failed to generate a key");
1717
//!

0 commit comments

Comments
 (0)