• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
3  *
4  *  Licensed under the Apache License, Version 2.0 (the License); you may
5  *  not use this file except in compliance with the License.
6  *
7  *  http://www.apache.org/licenses/LICENSE-2.0
8  */
9 
10 
11 #include <stdio.h>
12 #include <string.h>
13 #include <stdlib.h>
14 #include <gmssl/sm2.h>
15 
16 
main(int argc,char ** argv)17 int main(int argc, char **argv)
18 {
19 	uint8_t buf[4096];
20 	ssize_t len;
21 	uint8_t dgst[32];
22 	int i;
23 
24 
25 	for (i = 0; i < sizeof(dgst); i++) {
26 		printf("%02x", dgst[i]);
27 	}
28 	printf("\n");
29 	return 0;
30 }
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43