mirror of
https://github.com/mii443/lamport_sigs.rs.git
synced 2025-08-22 15:05:49 +00:00
Update to Rust 2018
This commit is contained in:
@ -10,6 +10,7 @@ repository = "https://github.com/SpinResearch/lamport_sigs.rs"
|
|||||||
keywords = ["lamport", "signature-scheme"]
|
keywords = ["lamport", "signature-scheme"]
|
||||||
categories = ["cryptography", "algorithms"]
|
categories = ["cryptography", "algorithms"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ring = "^0.16.1"
|
ring = "^0.16.1"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
use ring::digest::{Algorithm, SHA256, SHA512};
|
use ring::digest::{Algorithm, SHA256, SHA512};
|
||||||
|
|
||||||
use PrivateKey;
|
use crate::PrivateKey;
|
||||||
use PublicKey;
|
use crate::PublicKey;
|
||||||
|
|
||||||
static DIGEST_256: &Algorithm = &SHA256;
|
static DIGEST_256: &Algorithm = &SHA256;
|
||||||
static DIGEST_512: &Algorithm = &SHA512;
|
static DIGEST_512: &Algorithm = &SHA512;
|
||||||
|
Reference in New Issue
Block a user