Lines Matching defs:bn
21 #include <openssl/bn.h>
33 check_bn_word_test(const char *op_name, const BIGNUM *bn,
40 if ((out_word = BN_get_word(bn)) != bwt->out_word) {
47 if (BN_is_negative(bn) != bwt->out_is_negative) {
49 op_name, BN_is_negative(bn), bwt->out_is_negative);
53 if ((out_hex = BN_bn2hex(bn)) == NULL)
62 if (BN_is_zero(bn) && BN_is_negative(bn) != 0) {
80 BIGNUM *bn;
84 if ((bn = BN_new()) == NULL)
90 if (!BN_hex2bn(&bn, bwt->in_hex)) {
97 if (!bn_word_op(bn, bwt->in_word)) {
104 failed |= check_bn_word_test(op_name, bn, bwt);
107 BN_free(bn);
426 BIGNUM *bn;
430 if ((bn = BN_new()) == NULL)
436 if (!BN_hex2bn(&bn, bwt->in_hex)) {
443 if ((mod_word = BN_div_word(bn, bwt->in_word)) != bwt->mod_word) {
451 failed |= check_bn_word_test(op_name, bn, bwt);
454 BN_free(bn);
572 BIGNUM *bn;
576 if ((bn = BN_new()) == NULL)
582 if (!BN_hex2bn(&bn, bwt->in_hex)) {
589 if ((mod_word = BN_mod_word(bn, bwt->in_word)) != bwt->mod_word) {
597 failed |= check_bn_word_test(op_name, bn, bwt);
600 BN_free(bn);