Lines Matching refs:bn
30 const BIGNUM *bn; member
194 const BIGNUM *bn, size_t sz, int type) in push_BN() argument
203 if (bn != NULL) { in push_BN()
204 if (type == OSSL_PARAM_UNSIGNED_INTEGER && BN_is_negative(bn)) { in push_BN()
210 n = BN_num_bytes(bn); in push_BN()
219 if (BN_get_flags(bn, BN_FLG_SECURE) == BN_FLG_SECURE) in push_BN()
229 pd->bn = bn; in push_BN()
234 const BIGNUM *bn) in OSSL_PARAM_BLD_push_BN() argument
236 if (bn != NULL && BN_is_negative(bn)) in OSSL_PARAM_BLD_push_BN()
237 return push_BN(bld, key, bn, BN_num_bytes(bn) + 1, in OSSL_PARAM_BLD_push_BN()
239 return push_BN(bld, key, bn, bn == NULL ? 0 : BN_num_bytes(bn), in OSSL_PARAM_BLD_push_BN()
244 const BIGNUM *bn, size_t sz) in OSSL_PARAM_BLD_push_BN_pad() argument
246 if (bn != NULL && BN_is_negative(bn)) in OSSL_PARAM_BLD_push_BN_pad()
247 return push_BN(bld, key, bn, BN_num_bytes(bn), in OSSL_PARAM_BLD_push_BN_pad()
249 return push_BN(bld, key, bn, sz, OSSL_PARAM_UNSIGNED_INTEGER); in OSSL_PARAM_BLD_push_BN_pad()
331 if (pd->bn != NULL) { in param_bld_convert()
334 BN_bn2nativepad(pd->bn, (unsigned char *)p, pd->size); in param_bld_convert()
336 BN_signed_bn2native(pd->bn, (unsigned char *)p, pd->size); in param_bld_convert()