Lines Matching refs:ipp_bn
73 bn->ipp_bn = ipp_bn_ctx; in NewBigNum()
89 SAFE_FREE((*bignum)->ipp_bn); in DeleteBigNum()
104 if (!bn->ipp_bn) return kEpidBadArgErr; in ReadBigNum()
127 sts = ippsSet_BN(IppsBigNumPOS, 1, &zero32, bn->ipp_bn); in ReadBigNum()
129 sts = ippsSetOctString_BN(bn_str, ipp_strlen, bn->ipp_bn); in ReadBigNum()
147 if (!bn->ipp_bn) return kEpidBadArgErr; in WriteBigNum()
149 sts = ippsGetOctString_BN((OctStr)bn_str, ipp_strlen, bn->ipp_bn); in WriteBigNum()
217 if (!r->ipp_bn || !a->ipp_bn || !b->ipp_bn) return kEpidBadArgErr; in BigNumAdd()
219 sts = ippsAdd_BN(a->ipp_bn, b->ipp_bn, r->ipp_bn); in BigNumAdd()
237 if (!r->ipp_bn || !a->ipp_bn || !b->ipp_bn) return kEpidBadArgErr; in BigNumSub()
239 sts = ippsSub_BN(a->ipp_bn, b->ipp_bn, r->ipp_bn); in BigNumSub()
248 sts = ippsCmpZero_BN(r->ipp_bn, &sign); in BigNumSub()
263 if (!r->ipp_bn || !a->ipp_bn || !b->ipp_bn) return kEpidBadArgErr; in BigNumMul()
265 sts = ippsMul_BN(a->ipp_bn, b->ipp_bn, r->ipp_bn); in BigNumMul()
283 if (!a->ipp_bn || !b->ipp_bn || !q->ipp_bn || !r->ipp_bn) in BigNumDiv()
286 sts = ippsDiv_BN(a->ipp_bn, b->ipp_bn, q->ipp_bn, r->ipp_bn); in BigNumDiv()
305 if (!r->ipp_bn || !a->ipp_bn || !b->ipp_bn) return kEpidBadArgErr; in BigNumMod()
307 sts = ippsMod_BN(a->ipp_bn, b->ipp_bn, r->ipp_bn); in BigNumMod()
329 if (!a->ipp_bn) { in BigNumIsEven()
332 sts = ippsRef_BN(&sgn, &bit_size, &data, a->ipp_bn); in BigNumIsEven()
347 if (!a->ipp_bn) { in BigNumIsZero()
350 sts = ippsCmpZero_BN(a->ipp_bn, &sign); in BigNumIsZero()