Lines Matching refs:sts

39 #define BREAK_ON_IPP_ERROR(sts, ret)           \  argument
41 IppStatus temp_sts = (sts); \
189 IppStatus sts = ippStsNoErr; in NewEcPoint() local
200 sts = ippsGFpECPointGetSize(g->ipp_ec, &sizeInBytes); in NewEcPoint()
201 if (ippStsContextMatchErr == sts) { in NewEcPoint()
204 } else if (ippStsNoErr != sts) { in NewEcPoint()
215 sts = ippsGFpECPointInit(NULL, NULL, ec_pt_context, g->ipp_ec); in NewEcPoint()
216 if (ippStsContextMatchErr == sts) { in NewEcPoint()
219 } else if (ippStsNoErr != sts) { in NewEcPoint()
281 IppStatus sts = ippStsNoErr; in eccontains() local
310 sts = ippsGFpECSetPointAtInfinity(p->ipp_ec_pt, g->ipp_ec); in eccontains()
312 if (ippStsNoErr != sts) { in eccontains()
313 if (ippStsContextMatchErr == sts) in eccontains()
351 sts = ippsGFpECSetPoint(fp_x->ipp_ff_elem, fp_y->ipp_ff_elem, p->ipp_ec_pt, in eccontains()
354 if (ippStsNoErr != sts) { in eccontains()
355 if (ippStsContextMatchErr == sts) in eccontains()
363 sts = ippsGFpECTstPoint(p->ipp_ec_pt, &ec_result, g->ipp_ec); in eccontains()
365 if (ippStsNoErr != sts) { in eccontains()
366 if (ippStsContextMatchErr == sts) in eccontains()
398 IppStatus sts = ippsGFpECPointInit(NULL, NULL, p->ipp_ec_pt, g->ipp_ec); in ReadEcPoint() local
399 if (ippStsContextMatchErr == sts) { in ReadEcPoint()
401 } else if (ippStsNoErr != sts) { in ReadEcPoint()
416 IppStatus sts = ippStsNoErr; in WriteEcPoint() local
450 sts = ippsGFpECGetPoint(p->ipp_ec_pt, fp_x->ipp_ff_elem, fp_y->ipp_ff_elem, in WriteEcPoint()
453 if (ippStsNoErr != sts) { in WriteEcPoint()
454 if (ippStsPointAtInfinity == sts) { in WriteEcPoint()
457 } else if (ippStsContextMatchErr == sts || ippStsOutOfRangeErr == sts) { in WriteEcPoint()
466 sts = ippsGFpGetElementOctString(fp_x->ipp_ff_elem, byte_str, in WriteEcPoint()
469 if (ippStsNoErr != sts) { in WriteEcPoint()
470 if (ippStsContextMatchErr == sts) in WriteEcPoint()
478 sts = ippsGFpGetElementOctString(fp_y->ipp_ff_elem, in WriteEcPoint()
482 if (ippStsNoErr != sts) { in WriteEcPoint()
483 if (ippStsContextMatchErr == sts) in WriteEcPoint()
499 IppStatus sts = ippStsNoErr; in EcMul() local
512 sts = ippsGFpECAddPoint(a->ipp_ec_pt, b->ipp_ec_pt, r->ipp_ec_pt, g->ipp_ec); in EcMul()
514 if (ippStsNoErr != sts) { in EcMul()
515 if (ippStsContextMatchErr == sts) in EcMul()
527 IppStatus sts = ippStsNoErr; in EcExp() local
548 sts = ippsGFpECMulPoint(a->ipp_ec_pt, b_bn->ipp_bn, r->ipp_ec_pt, g->ipp_ec, in EcExp()
550 if (ippStsNoErr != sts) { in EcExp()
551 if (ippStsContextMatchErr == sts || ippStsRangeErr == sts || in EcExp()
552 ippStsOutOfRangeErr == sts) in EcExp()
609 IppStatus sts = ippStsNoErr; in EcMultiExp() local
622 sts = ippsGFpECMulPoint(a[i]->ipp_ec_pt, b_bn->ipp_bn, ecp_t->ipp_ec_pt, in EcMultiExp()
624 if (ippStsNoErr != sts) { in EcMultiExp()
625 if (ippStsContextMatchErr == sts || ippStsRangeErr == sts || in EcMultiExp()
626 ippStsOutOfRangeErr == sts) in EcMultiExp()
633 sts = ippsGFpECCpyPoint(ecp_t->ipp_ec_pt, r->ipp_ec_pt, g->ipp_ec); in EcMultiExp()
634 if (ippStsNoErr != sts) { in EcMultiExp()
639 sts = ippsGFpECAddPoint(ecp_t->ipp_ec_pt, r->ipp_ec_pt, r->ipp_ec_pt, in EcMultiExp()
641 if (ippStsNoErr != sts) { in EcMultiExp()
701 IppStatus sts = ippStsNoErr; in EcMultiExpBn() local
707 sts = ippsGFpECMulPoint(a[i]->ipp_ec_pt, b[i]->ipp_bn, ecp_t->ipp_ec_pt, in EcMultiExpBn()
709 if (ippStsNoErr != sts) { in EcMultiExpBn()
710 if (ippStsContextMatchErr == sts || ippStsRangeErr == sts || in EcMultiExpBn()
711 ippStsOutOfRangeErr == sts) in EcMultiExpBn()
718 sts = ippsGFpECCpyPoint(ecp_t->ipp_ec_pt, r->ipp_ec_pt, g->ipp_ec); in EcMultiExpBn()
719 if (ippStsNoErr != sts) { in EcMultiExpBn()
724 sts = ippsGFpECAddPoint(ecp_t->ipp_ec_pt, r->ipp_ec_pt, r->ipp_ec_pt, in EcMultiExpBn()
726 if (ippStsNoErr != sts) { in EcMultiExpBn()
750 IppStatus sts = ippStsNoErr; in EcGetRandom() local
762 sts = in EcGetRandom()
765 if (ippStsNoErr != sts) { in EcGetRandom()
766 if (ippStsContextMatchErr == sts) { in EcGetRandom()
938 IppStatus sts; in Epid11EcHash() local
958 sts = ippsGFpECGet(&ipp_ff, 0, 0, g->ipp_ec); in Epid11EcHash()
959 BREAK_ON_IPP_ERROR(sts, result); in Epid11EcHash()
960 sts = ippsGFpECGetSubgroup(&ipp_ff, 0, 0, 0, h_bn->ipp_bn, g->ipp_ec); in Epid11EcHash()
961 BREAK_ON_IPP_ERROR(sts, result); in Epid11EcHash()
977 sts = ippsGFpECGet(0, a->ipp_ff_elem, b->ipp_ff_elem, g->ipp_ec); in Epid11EcHash()
978 BREAK_ON_IPP_ERROR(sts, result); in Epid11EcHash()
1048 sts = ippsGFpECSetPoint(rx->ipp_ff_elem, t2->ipp_ff_elem, r->ipp_ec_pt, in Epid11EcHash()
1050 BREAK_ON_IPP_ERROR(sts, result); in Epid11EcHash()
1052 sts = ippsGFpECMulPoint(r->ipp_ec_pt, h_bn->ipp_bn, r->ipp_ec_pt, g->ipp_ec, in Epid11EcHash()
1054 BREAK_ON_IPP_ERROR(sts, result); in Epid11EcHash()
1074 IppStatus sts = ippStsNoErr; in EcHash() local
1107 sts = ippsGFpECSetPointHash(ipp_i, msg, ipp_msg_len, r->ipp_ec_pt, in EcHash()
1109 } while (ippStsQuadraticNonResidueErr == sts && in EcHash()
1116 if (ippStsContextMatchErr == sts || ippStsBadArgErr == sts || in EcHash()
1117 ippStsLengthErr == sts) { in EcHash()
1120 if (ippStsNoErr != sts) { in EcHash()
1128 IppStatus sts = ippStsNoErr; in EcMakePoint() local
1140 sts = ippsGFpECMakePoint(x->ipp_ff_elem, r->ipp_ec_pt, g->ipp_ec); in EcMakePoint()
1141 if (ippStsNoErr != sts) { in EcMakePoint()
1142 if (ippStsContextMatchErr == sts || ippStsQuadraticNonResidueErr == sts || in EcMakePoint()
1143 ippStsBadArgErr == sts) in EcMakePoint()
1152 IppStatus sts = ippStsNoErr; in EcInverse() local
1164 sts = ippsGFpECNegPoint(p->ipp_ec_pt, r->ipp_ec_pt, g->ipp_ec); in EcInverse()
1166 if (ippStsNoErr != sts) { in EcInverse()
1167 if (ippStsContextMatchErr == sts) in EcInverse()
1177 IppStatus sts; in EcIsEqual() local
1191 sts = ippsGFpECCmpPoint(a->ipp_ec_pt, b->ipp_ec_pt, &result, g->ipp_ec); in EcIsEqual()
1192 if (ippStsNoErr != sts) { in EcIsEqual()
1193 if (ippStsContextMatchErr == sts) { in EcIsEqual()
1205 IppStatus sts; in EcIsIdentity() local
1218 sts = ippsGFpECTstPoint(p->ipp_ec_pt, &result, g->ipp_ec); in EcIsIdentity()
1219 if (ippStsNoErr != sts) { in EcIsIdentity()
1220 if (ippStsContextMatchErr == sts) { in EcIsIdentity()
1226 sts = ippsGFpECTstPointInSubgroup(p->ipp_ec_pt, &result, g->ipp_ec, in EcIsIdentity()
1228 if (ippStsNoErr != sts) { in EcIsIdentity()
1229 if (ippStsContextMatchErr == sts) { in EcIsIdentity()