Hello: I want to generate a random number making use of BN_rand_range() function. But I obtain an error at execution time. This is my code:
error = BN_rand_range(A, claveDSA_TTP->q); if (error == 1) printf ("A obtenido correctamente\n"); else printf ("Error al obtener A\n"); printf ("A: %s\n", BN_bn2dec(A)); The error that I obtained is this: "The instruction in "0x1002a31a" make a reference to memory in "0xd4c0ada7". The memory can not be "read"." I send, too, an image of the error. What is the problem?. Thanks.
<<attachment: error.jpg>>