aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-08 18:43:59 -0500
committerJack Lloyd <[email protected]>2018-03-08 18:43:59 -0500
commitaf4aad7db642607fbf4e07b2f8d7c97865397e94 (patch)
treed54c4acc3f95f8e49da37582d95ac8ea820d87c9 /src/cli
parent5207365fd5cc99eb187101fe14cf1908aac20c10 (diff)
Add benchmark for GOST-34.10 signatures
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 3a752a3d3..e331354c9 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -815,6 +815,12 @@ class Speed final : public Command
bench_eckcdsa(ecc_groups, provider, msec);
}
#endif
+#if defined(BOTAN_HAS_GOST_34_10_2001)
+ else if(algo == "GOST-34.10")
+ {
+ bench_gost_3410(provider, msec);
+ }
+#endif
#if defined(BOTAN_HAS_ECGDSA)
else if(algo == "ECGDSA")
{
@@ -1809,6 +1815,14 @@ class Speed final : public Command
}
#endif
+#if defined(BOTAN_HAS_GOST_34_10_2001)
+ void bench_gost_3410(const std::string& provider,
+ std::chrono::milliseconds msec)
+ {
+ return bench_pk_sig_ecc("GOST-34.10", "EMSA1(GOST-34.11)", provider, {"gost_256A"}, msec);
+ }
+#endif
+
#if defined(BOTAN_HAS_SM2)
void bench_sm2(const std::vector<std::string>& groups,
const std::string& provider,