File tree 4 files changed +8
-26
lines changed
4 files changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name = "merlin"
3
3
version = " 1.2.0"
4
4
authors = [
" Henry de Valence <[email protected] >" ,
5
5
" isis agora lovecruft <[email protected] >" ]
6
+ edition = " 2018"
6
7
readme = " README.md"
7
8
license = " MIT"
8
9
repository = " https://github.com/dalek-cryptography/merlin"
Original file line number Diff line number Diff line change @@ -15,29 +15,10 @@ please file an issue!
15
15
"#
16
16
) ;
17
17
18
- extern crate byteorder;
19
- extern crate clear_on_drop;
20
- extern crate keccak;
21
- extern crate rand_core;
22
-
23
- #[ cfg( feature = "std" ) ]
24
- extern crate core;
25
-
26
- #[ cfg( test) ]
27
- extern crate curve25519_dalek;
28
- #[ cfg( feature = "hex" ) ]
29
- extern crate hex;
30
- #[ cfg( test) ]
31
- extern crate rand;
32
- #[ cfg( test) ]
33
- extern crate rand_chacha;
34
- #[ cfg( test) ]
35
- extern crate strobe_rs;
36
-
37
18
mod constants;
38
19
mod strobe;
39
20
mod transcript;
40
21
41
- pub use transcript:: Transcript ;
42
- pub use transcript:: TranscriptRng ;
43
- pub use transcript:: TranscriptRngBuilder ;
22
+ pub use crate :: transcript:: Transcript ;
23
+ pub use crate :: transcript:: TranscriptRng ;
24
+ pub use crate :: transcript:: TranscriptRngBuilder ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ pub struct Strobe128 {
36
36
}
37
37
38
38
impl :: core:: fmt:: Debug for Strobe128 {
39
- fn fmt ( & self , f : & mut :: core:: fmt:: Formatter ) -> :: core:: fmt:: Result {
39
+ fn fmt ( & self , f : & mut :: core:: fmt:: Formatter < ' _ > ) -> :: core:: fmt:: Result {
40
40
// Ensure that the Strobe state isn't accidentally logged
41
41
write ! ( f, "Strobe128: STATE OMITTED" )
42
42
}
Original file line number Diff line number Diff line change 1
1
use rand_core;
2
2
3
- use strobe:: Strobe128 ;
3
+ use crate :: strobe:: Strobe128 ;
4
4
5
5
fn encode_u64 ( x : u64 ) -> [ u8 ; 8 ] {
6
6
use byteorder:: { ByteOrder , LittleEndian } ;
@@ -66,7 +66,7 @@ impl Transcript {
66
66
/// Transcripts](https://merlin.cool/use/passing.html) section of
67
67
/// the Merlin website for more details on why.
68
68
pub fn new ( label : & ' static [ u8 ] ) -> Transcript {
69
- use constants:: MERLIN_PROTOCOL_LABEL ;
69
+ use crate :: constants:: MERLIN_PROTOCOL_LABEL ;
70
70
71
71
#[ cfg( feature = "debug-transcript" ) ]
72
72
{
@@ -391,7 +391,7 @@ mod tests {
391
391
impl TestTranscript {
392
392
/// Strobe init; meta-AD(label)
393
393
pub fn new ( label : & [ u8 ] ) -> TestTranscript {
394
- use constants:: MERLIN_PROTOCOL_LABEL ;
394
+ use crate :: constants:: MERLIN_PROTOCOL_LABEL ;
395
395
396
396
let mut tt = TestTranscript {
397
397
state : Strobe :: new ( MERLIN_PROTOCOL_LABEL . to_vec ( ) , SecParam :: B128 ) ,
You can’t perform that action at this time.
0 commit comments