aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/dsa.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-08-07 16:28:29 -0700
committerSteven Fackler <[email protected]>2016-08-07 16:29:36 -0700
commit7ca5ccf0646478b6d3557b066594d7e7afc36c53 (patch)
tree5244c966b649b73fc5e599edfc31edb1b1d2224e /openssl/src/crypto/dsa.rs
parentRefactor BigNum (diff)
downloadrust-openssl-7ca5ccf0646478b6d3557b066594d7e7afc36c53.tar.xz
rust-openssl-7ca5ccf0646478b6d3557b066594d7e7afc36c53.zip
Hash reform
Closes #430
Diffstat (limited to 'openssl/src/crypto/dsa.rs')
-rw-r--r--openssl/src/crypto/dsa.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/openssl/src/crypto/dsa.rs b/openssl/src/crypto/dsa.rs
index 84024379..099657da 100644
--- a/openssl/src/crypto/dsa.rs
+++ b/openssl/src/crypto/dsa.rs
@@ -7,7 +7,7 @@ use libc::{c_uint, c_int, c_char, c_void};
use bn::BigNumRef;
use bio::{MemBio, MemBioSlice};
use crypto::hash;
-use crypto::HashTypeInternals;
+use HashTypeInternals;
use crypto::util::{CallbackState, invoke_passwd_cb};
@@ -249,9 +249,9 @@ mod test {
let input: Vec<u8> = (0..25).cycle().take(1024).collect();
let digest = {
- let mut sha = Hasher::new(Type::SHA1);
+ let mut sha = Hasher::new(Type::SHA1).unwrap();
sha.write_all(&input).unwrap();
- sha.finish()
+ sha.finish().unwrap()
};
let sig = key.sign(Type::SHA1, &digest).unwrap();
@@ -274,9 +274,9 @@ mod test {
};
let digest = {
- let mut sha = Hasher::new(Type::SHA1);
+ let mut sha = Hasher::new(Type::SHA1).unwrap();
sha.write_all(&input).unwrap();
- sha.finish()
+ sha.finish().unwrap()
};
let sig = private_key.sign(Type::SHA1, &digest).unwrap();
@@ -298,9 +298,9 @@ mod test {
};
let digest = {
- let mut sha = Hasher::new(Type::SHA1);
+ let mut sha = Hasher::new(Type::SHA1).unwrap();
sha.write_all(&input).unwrap();
- sha.finish()
+ sha.finish().unwrap()
};
let mut sig = private_key.sign(Type::SHA1, &digest).unwrap();