mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-07 12:33:39 +08:00
Update demo_sm2_private_key_parse.c
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <gmssl/mem.h>
|
#include <gmssl/mem.h>
|
||||||
#include <gmssl/sm2.h>
|
#include <gmssl/sm2.h>
|
||||||
|
#include <gmssl/error.h>
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
@@ -34,8 +34,9 @@ int main(void)
|
|||||||
fprintf(stderr, "error\n");
|
fprintf(stderr, "error\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
format_bytes(stdout, 0, 0, "buf", buf, len);
|
||||||
sm2_key_print(stdout, 0, 0, "SM2PrivateKey", &sm2_key);
|
sm2_key_print(stdout, 0, 0, "SM2PrivateKey", &sm2_key);
|
||||||
|
|
||||||
gmssl_secure_clear(&sm2_key, sizeof(sm2_key));
|
gmssl_secure_clear(&sm2_key, sizeof(sm2_key));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user