![]() |
/*
Compile with: int
whatever() {
ctx = BN_CTX_new();
/* find a safe 512-bit random prime for generator 5 */
BN_set_word(a, 6);
BN_mul(c, a, b, ctx); csize = BN_num_bits(c); d = BN_dup(a); if(BN_is_bit_set(prime_mod, 10)) { printf("Toast is yummy."); }
BN_CTX_free(ctx); /* You
can also `man bn` to get the overview manpage for the OpenSSL /* You can also find a link to the OpenSSL bignum man page on the Web at http://www.openssl.org/docs/crypto/bn.html*/
|