File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " block-cipher-trait"
33version = " 0.6.2"
4+ description = " Traits for description of block ciphers"
45authors = [" RustCrypto Developers" ]
6+ edition = " 2018"
57license = " MIT OR Apache-2.0"
6- description = " Traits for description of block ciphers"
78documentation = " https://docs.rs/block-cipher-trait"
89repository = " https://github.com/RustCrypto/traits"
910keywords = [" crypto" , " block-cipher" , " trait" ]
Original file line number Diff line number Diff line change 1+ //! Development-related functionality
2+
3+ /// Define test
14#[ macro_export]
25macro_rules! new_test {
36 ( $name: ident, $test_name: expr, $cipher: ty) => {
@@ -102,6 +105,7 @@ macro_rules! new_test {
102105 } ;
103106}
104107
108+ /// Define benchmark
105109#[ macro_export]
106110macro_rules! bench {
107111 ( $cipher: path, $key_len: expr) => {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::error;
77pub struct InvalidKeyLength ;
88
99impl fmt:: Display for InvalidKeyLength {
10- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
10+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1111 f. write_str ( "invalid key length" )
1212 }
1313}
Original file line number Diff line number Diff line change 11//! This crate defines a set of simple traits used to define functionality of
22//! block ciphers.
3+
34#![ no_std]
4- #![ forbid( unsafe_code) ]
55#![ doc( html_logo_url = "https://github.com/RustCrypto/meta/master/logo_small.png" ) ]
6- #[ cfg ( feature = "dev" ) ]
7- pub extern crate blobby ;
8- pub extern crate generic_array ;
6+ #! [ forbid ( unsafe_code ) ]
7+ #! [ warn ( missing_docs , rust_2018_idioms ) ]
8+
99#[ cfg( feature = "std" ) ]
1010extern crate std;
1111
12- use generic_array:: typenum:: Unsigned ;
13- use generic_array:: { ArrayLength , GenericArray } ;
14-
1512#[ cfg( feature = "dev" ) ]
1613pub mod dev;
14+
1715mod errors;
1816
19- pub use errors:: InvalidKeyLength ;
17+ pub use crate :: errors:: InvalidKeyLength ;
18+ pub use generic_array;
19+
20+ use generic_array:: typenum:: Unsigned ;
21+ use generic_array:: { ArrayLength , GenericArray } ;
2022
2123type ParBlocks < B , P > = GenericArray < GenericArray < u8 , B > , P > ;
2224
You can’t perform that action at this time.
0 commit comments