aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/fips140.h1
-rw-r--r--src/fips140.cpp18
2 files changed, 0 insertions, 19 deletions
diff --git a/include/fips140.h b/include/fips140.h
index 400b5c117..20f9dd9fa 100644
--- a/include/fips140.h
+++ b/include/fips140.h
@@ -16,7 +16,6 @@ namespace FIPS140 {
* FIPS 140-2 Self Tests *
*************************************************/
bool passes_self_tests();
-bool good_edc(const std::string&, const std::string&);
}
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());
- }
-
}
}