Fixing

parent 63b5a0a0
...@@ -89,10 +89,7 @@ char *encryptKey2Hex(int *errStatus, char *err_string, const char *_key) { ...@@ -89,10 +89,7 @@ char *encryptKey2Hex(int *errStatus, char *err_string, const char *_key) {
} }
TEST_CASE("BLS key encrypt", "[bls-key-encrypt]") { char* encryptTestKey() {
init_all();
const char *key = "4160780231445160889237664391382223604184857153814275770598" const char *key = "4160780231445160889237664391382223604184857153814275770598"
"791864649971919844"; "791864649971919844";
...@@ -111,6 +108,17 @@ TEST_CASE("BLS key encrypt", "[bls-key-encrypt]") { ...@@ -111,6 +108,17 @@ TEST_CASE("BLS key encrypt", "[bls-key-encrypt]") {
printf("Encrypted key len %d\n", (int) strlen(encryptedKeyHex)); printf("Encrypted key len %d\n", (int) strlen(encryptedKeyHex));
printf("Encrypted key %s \n", encryptedKeyHex); printf("Encrypted key %s \n", encryptedKeyHex);
return encryptedKeyHex;
}
TEST_CASE("BLS key encrypt", "[bls-key-encrypt]") {
init_all();
char* key = encryptTestKey();
REQUIRE(key != nullptr);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment