5
'a dönüştürüyorumdizesini, OpenSSL kütüphanesini kullanarak BIGNUM
p
numaralı büyük bir tamsayıyı dönüştürmeye çalışıyorum. Bunu yürütmek zaman şu sonucu olsun,Bir dize olarak verilen bir büyük sayıyı bir OpenSSL BIGNUM
gcc -Wall -Wextra -g -o convert convert.c -lcrypto
Ama:
#include <stdio.h>
#include <openssl/bn.h>
int main()
{
/* I shortened the integer */
unsigned char *p_str = "82019154470699086128524248488673846867876336512717";
BIGNUM *p = BN_bin2bn(p_str, sizeof(p_str), NULL);
BN_print_fp(stdout, p);
puts("");
BN_free(p);
return 0;
}
ile Derleyen
3832303139313534