mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-05-19 08:20:17 +00:00
dont do indirection in for batch stuff
This commit is contained in:
parent
5b5f414b79
commit
51d87c3857
19 changed files with 86 additions and 71 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue