aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_sm2.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-09-09 11:05:13 -0400
committerJack Lloyd <[email protected]>2018-09-09 14:26:07 -0400
commit3fbef810797e018cc0bc0e9b8361bb1a7c785bd7 (patch)
tree4ac1087ab46e8c05c62d29dbe36284392e81749b /src/tests/test_sm2.cpp
parente79eec4e92e05b42d70acf578256adcfb0a0c22d (diff)
Support SM2 raw signatures
Where SM2 signs a hash input provided by the application. This is a contribution by Ribose Inc (@riboseinc)
Diffstat (limited to 'src/tests/test_sm2.cpp')
-rw-r--r--src/tests/test_sm2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/test_sm2.cpp b/src/tests/test_sm2.cpp
index 24e5c640d..a7eb84774 100644
--- a/src/tests/test_sm2.cpp
+++ b/src/tests/test_sm2.cpp
@@ -46,6 +46,8 @@ class SM2_Signature_KAT_Tests final : public PK_Signature_Generation_Test
"P,A,B,xG,yG,Order,Cofactor,Ident,Msg,x,Nonce,Signature",
"Hash") {}
+ bool clear_between_callbacks() const override { return false; }
+
std::string default_padding(const VarMap& vars) const override
{
return vars.get_req_str("Ident") + "," + vars.get_opt_str("Hash", "SM3");