aboutsummaryrefslogtreecommitdiffstats
path: root/src/fips140.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-07-29 00:35:13 +0000
committerlloyd <[email protected]>2006-07-29 00:35:13 +0000
commit9570ccb3a19be0e0a8b33e72753831066b77e856 (patch)
tree4ff91a279967167d1d1a8403d83ce4295e658b42 /src/fips140.cpp
parent0a9ee0e122aed780e6da5428fe0f0a007c84b87b (diff)
Remove FIPS140::good_edc; it has never been used and probably will not
be in the forseeable future.
Diffstat (limited to 'src/fips140.cpp')
-rw-r--r--src/fips140.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/fips140.cpp b/src/fips140.cpp
index 714b8b4be..fd772f6f7 100644
--- a/src/fips140.cpp
+++ b/src/fips140.cpp
@@ -155,24 +155,6 @@ bool passes_self_tests()
return true;
}
-/*************************************************
-* Check a SHA-1 EDC *
-*************************************************/
-bool good_edc(const std::string& filename, const std::string& edc)
- {
- if(filename == "" || edc == "")
- return false;
-
- Pipe pipe1(new Hash_Filter("SHA-1"));
- Pipe pipe2(new Hex_Decoder);
-
- DataSource_Stream in(filename, true);
- pipe1.process_msg(in);
- pipe2.process_msg(edc);
-
- return (pipe1.read_all() == pipe2.read_all());
- }
-
}
}