mirror of
https://github.com/cathugger/mkp224o.git
synced 2026-01-26 19:22:09 -06:00
dont do indirection in for batch stuff
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
// inz is ge_p3.Z pointer array. contents to .Zs will be overwritten
|
||||
// NOTE: leaves in unfinished state
|
||||
void ge_p3_batchtobytes_destructive_1(bytes32 out[],ge_p3 in[],fe *inz[],fe tmp[],size_t num)
|
||||
void ge_p3_batchtobytes_destructive_1(bytes32 *out,ge_p3 *in,fe *tmp,size_t num)
|
||||
{
|
||||
fe y;
|
||||
|
||||
fe_batchinvert(inz,tmp,inz,num);
|
||||
fe_batchinvert(&in->Z,&in->Z,tmp,num,sizeof(ge_p3));
|
||||
|
||||
for (size_t i = 0;i < num;++i) {
|
||||
fe_mul(y,in[i].Y,in[i].Z);
|
||||
|
||||
Reference in New Issue
Block a user