Lines Matching refs:bn
79 char *BN_bn2hex(const BIGNUM *bn) { in BN_bn2hex() argument
80 int width = bn_minimal_width(bn); in BN_bn2hex()
89 if (bn->neg) { in BN_bn2hex()
93 if (BN_is_zero(bn)) { in BN_bn2hex()
101 int v = ((int)(bn->d[i] >> (long)j)) & 0xff; in BN_bn2hex()
115 static int decode_hex(BIGNUM *bn, const char *in, int in_len) { in decode_hex() argument
121 if (!bn_expand(bn, in_len * 4)) { in decode_hex()
153 bn->d[i++] = word; in decode_hex()
156 assert(i <= bn->dmax); in decode_hex()
157 bn->width = i; in decode_hex()
162 static int decode_dec(BIGNUM *bn, const char *in, int in_len) { in decode_dec() argument
176 if (!BN_mul_word(bn, BN_DEC_CONV) || in decode_dec()
177 !BN_add_word(bn, l)) { in decode_dec()
187 typedef int (*decode_func) (BIGNUM *bn, const char *in, int in_len);