aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_sm2.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-20 17:33:06 +0000
committerJack Lloyd <[email protected]>2017-09-20 17:33:06 +0000
commit98993f542727787dcdc8e549a748a94886643458 (patch)
tree1d369c60817b5ae0bd616f6b046322950cd65065 /src/tests/test_sm2.cpp
parentbbbc4c59ec85ec912b482afab1eccc0fd3b1f87a (diff)
Update SM2 to use ASN.1 encoding for ciphertexts
There are in fact 3 different variations of SM2 standard, first C1||C2||C3, then C1||C3||C2, then (most recently) an ASN.1 encoding. This makes us compatible with GmSSL This work was sponsored 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 0497ccedd..0816a5f76 100644
--- a/src/tests/test_sm2.cpp
+++ b/src/tests/test_sm2.cpp
@@ -78,6 +78,8 @@ class SM2_Encryption_KAT_Tests : public PK_Encryption_Decryption_Test
return get_opt_str(vars, "Hash", "SM3");
}
+ bool clear_between_callbacks() const override { return false; }
+
Botan::RandomNumberGenerator* test_rng(const std::vector<uint8_t>& nonce) const override
{
return new Fixed_Output_Position_RNG(nonce, 1);