示例#1
0
void point_print(const char *s, const EC_POINT x)
{
   int size = point_get_str_length(x);
   char *str = (char*)malloc(sizeof(char)*size);

   point_get_str(str, x);
   printf("%s: %s\n", s, str);

   free(str);
}
示例#2
0
void print_point(const EC_POINT x)
{
    int len = point_get_str_length(x);

    char *s = (char*)malloc(sizeof(char) * len);

    point_get_str(s, x);

    printf("point: %s\n", s);

    free(s);
}