diff --git a/demos/src/demo_sm2_private_key_parse.c b/demos/src/demo_sm2_private_key_parse.c index 9bd4bb8e..f17e890a 100644 --- a/demos/src/demo_sm2_private_key_parse.c +++ b/demos/src/demo_sm2_private_key_parse.c @@ -12,7 +12,7 @@ #include #include #include - +#include int main(void) { @@ -34,8 +34,9 @@ int main(void) fprintf(stderr, "error\n"); return 1; } + format_bytes(stdout, 0, 0, "buf", buf, len); sm2_key_print(stdout, 0, 0, "SM2PrivateKey", &sm2_key); - + gmssl_secure_clear(&sm2_key, sizeof(sm2_key)); return 0; }