mirror of
https://github.com/mii443/lamport_sigs.rs.git
synced 2025-08-22 23:15:26 +00:00
Update dependencies
This commit is contained in:
@ -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
|
||||||
|
@ -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};
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user