Lines Matching refs:bn
29 BigNum* bn = NULL; in NewBigNum() local
67 bn = (BigNum*)SAFE_ALLOC(sizeof(BigNum)); in NewBigNum()
68 if (!bn) { in NewBigNum()
73 bn->ipp_bn = ipp_bn_ctx; in NewBigNum()
75 *bignum = bn; in NewBigNum()
81 SAFE_FREE(bn); in NewBigNum()
95 EpidStatus ReadBigNum(ConstOctStr bn_str, size_t strlen, BigNum* bn) { in ReadBigNum() argument
102 if (!bn || !bn_str) return kEpidBadArgErr; in ReadBigNum()
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()
142 EpidStatus WriteBigNum(BigNum const* bn, size_t strlen, OctStr bn_str) { in WriteBigNum() argument
145 if (!bn || !bn_str) return kEpidBadArgErr; in WriteBigNum()
147 if (!bn->ipp_bn) return kEpidBadArgErr; in WriteBigNum()
149 sts = ippsGetOctString_BN((OctStr)bn_str, ipp_strlen, bn->ipp_bn); in WriteBigNum()