Update dependencies

This commit is contained in:
kpcyrd
2018-08-09 22:15:58 +01:00
committed by Romain Ruetschi
parent f392d426b1
commit 2dfc56ea7b
3 changed files with 4 additions and 3 deletions

View File

@ -12,8 +12,8 @@ categories = ["cryptography", "algorithms"]
readme = "README.md" readme = "README.md"
[dependencies] [dependencies]
ring = "^0.12.0" ring = "^0.13.0"
rand = "^0.3.0" rand = "^0.5.0"
[package.metadata.release] [package.metadata.release]
sign-commit = true sign-commit = true

View File

@ -8,7 +8,7 @@ extern crate rand;
extern crate ring; extern crate ring;
use rand::OsRng; use rand::OsRng;
use rand::Rng; use rand::RngCore;
use ring::digest::{Algorithm, Context}; use ring::digest::{Algorithm, Context};
use std::cmp::Ordering; use std::cmp::Ordering;
use std::hash::{Hash, Hasher}; use std::hash::{Hash, Hasher};

View File

@ -83,6 +83,7 @@ fn test_serialization() {
assert_eq!(pub_key.zero_values, recovered_pub_key.zero_values); assert_eq!(pub_key.zero_values, recovered_pub_key.zero_values);
} }
#[test]
fn test_serialization_wrong_size_key() { fn test_serialization_wrong_size_key() {
let pub_key = PrivateKey::new(digest_512).public_key(); let pub_key = PrivateKey::new(digest_512).public_key();
let mut too_short = pub_key.to_bytes(); let mut too_short = pub_key.to_bytes();