We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdc81e2 commit c34d24aCopy full SHA for c34d24a
Classes/FCryptoEC_Prime.uc
@@ -502,9 +502,14 @@ static final function int RunCode(
502
return R;
503
}
504
505
-static final function CurveParams IdToCurve(EFCEllipticCurve Curve)
+// Differs from C version: const out param for performance.
506
+// TODO: benchmark the actual difference when this has a return value struct.
507
+static final function IdToCurve(
508
+ EFCEllipticCurve Curve,
509
+ const out CurveParams out_CurveParams
510
+)
511
{
- return default._PP[Curve - FCEC_Secp256r1];
512
+ out_CurveParams = default._PP[Curve - FCEC_Secp256r1];
513
};
514
515
static function array<byte> Generator(EFCEllipticCurve Curve, out int Len)
0 commit comments