diff options
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/hash.rs | 2 | ||||
| -rw-r--r-- | crypto/hmac.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/crypto/hash.rs b/crypto/hash.rs index 5cc0ec58..d03b0317 100644 --- a/crypto/hash.rs +++ b/crypto/hash.rs @@ -11,6 +11,7 @@ pub enum HashType { SHA512 } +#[allow(dead_code)] #[allow(non_camel_case_types)] pub struct EVP_MD_CTX { digest: *EVP_MD, @@ -57,6 +58,7 @@ pub fn evpmd(t: HashType) -> (*EVP_MD, uint) { } } +#[allow(dead_code)] pub struct Hasher { evp: *EVP_MD, ctx: *EVP_MD_CTX, diff --git a/crypto/hmac.rs b/crypto/hmac.rs index 93ae0158..1104f6c1 100644 --- a/crypto/hmac.rs +++ b/crypto/hmac.rs @@ -17,6 +17,7 @@ use libc::{c_uchar, c_int, c_uint}; use crypto::hash; +#[allow(dead_code)] #[allow(non_camel_case_types)] pub struct HMAC_CTX { md: *hash::EVP_MD, @@ -43,6 +44,7 @@ pub struct HMAC { len: uint, } +#[allow(non_snake_case_functions)] pub fn HMAC(ht: hash::HashType, key: &[u8]) -> HMAC { unsafe { let (evp, mdlen) = hash::evpmd(ht); |