Lines Matching defs:curveData
93 return curve->curveData;
147 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
160 pAssert(groupContext != NULL && curveData != NULL);
175 BnFrom2B(bnP, curveData->p);
176 BnFrom2B(bnA, curveData->a);
177 BnFrom2B(bnB, curveData->b);
178 BnFrom2B(bnX, curveData->x);
179 BnFrom2B(bnY, curveData->y);
180 BnFrom2B(bnN, curveData->n);
181 BnFrom2B(bnH, curveData->h);
599 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
601 pAssert(Q != NULL && curveData != NULL);
616 || !BN_bin2bn(curveData->p->buffer, curveData->p->size, bnP)
617 || !BN_bin2bn(curveData->a->buffer, curveData->a->size, bnA)
619 || !BN_bin2bn(curveData->b->buffer, curveData->b->size, bnB)
676 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
689 pAssert( seed != NULL && dOut != NULL && Qout != NULL && curveData != NULL);
702 pAssert((int) curveData->n->size <= MAX_ECC_KEY_BYTES);
704 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL
764 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
765 pAssert(curveData != NULL);
771 GetRandomPrivate(dOut, curveData->p);
809 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
823 pAssert(curveData->n->size <= MAX_ECC_PARAMETER_BYTES);
825 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnN) == NULL)
841 k.t.size = curveData->n->size;
850 GetRandomPrivate(&k, curveData->n);
877 if(digest->size > curveData->n->size)
881 pAssert(curveData->n->size <= MAX_ECC_KEY_BYTES);
883 BN_bin2bn(digest->buffer, curveData->n->size, bnZ);
913 || !BnTo2B(&sOut->b, bnD, curveData->n->size)
917 || !BnTo2B(&rOut->b, bnR, curveData->n->size))
958 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
962 && kIn != NULL && curveData != NULL);
964 n = curveData->n;
1077 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1085 && digest != NULL && curveData != NULL);
1087 n = curveData->n;
1113 if(BN_bin2bn(curveData->n->buffer, curveData->n->size, bnN) == NULL)
1251 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1252 pAssert(curveData != NULL);
1266 BnFrom2B(bnN, curveData->n);
1274 k.t.size = curveData->n->size;
1336 BnTo2B(&rOut->b, bnR, curveData->n->size);
1337 BnTo2B(&sOut->b, bnS, curveData->n->size);
1443 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1445 pAssert (curveData != NULL);
1446 n = curveData->n;
1488 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnN) == NULL)
1556 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1558 pAssert(curveData != NULL);
1563 n = curveData->n;
1629 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1632 if((context = BN_CTX_new()) == NULL || curveData == NULL)
1836 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1838 pAssert( curveData != NULL && outZ != NULL && dsA != NULL
1841 if(context == NULL || curveData == NULL)
1865 BnFrom2B(bnH, curveData->h);
1866 BnFrom2B(bnN, curveData->n);
1982 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
1984 pAssert( curveData != NULL && outZ != NULL && dsA != NULL
1987 if(context == NULL || curveData == NULL)
2006 BnFrom2B(bnH, curveData->h);
2007 BnFrom2B(bnN, curveData->n);
2085 const ECC_CURVE_DATA *curveData = GetCurveData(curveId);
2087 if(context == NULL || curveData == NULL)