Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
kealan committed Nov 18, 2019
1 parent ae66b60 commit 6faaba4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions examples/example_bls_ZZZ.c.in
Expand Up @@ -60,7 +60,7 @@ int bls(csprng *RNG)

char m[2000];
octet M = {0,sizeof(m),m};

char sk1[BGS_ZZZ];
octet SK1 = {0,sizeof(sk1),sk1};
char pktmp[G2LEN];
Expand Down Expand Up @@ -115,7 +115,7 @@ int bls(csprng *RNG)
printf("\n");

OCT_jstring(&M,"test message");

// Sign the message
BLS_ZZZ_SIGN(&SIG1,&M,&SK1);
BLS_ZZZ_SIGN(&SIG2,&M,&SK2);
Expand Down
4 changes: 2 additions & 2 deletions examples/example_bls_sss_ZZZ.c.in
Expand Up @@ -62,7 +62,7 @@ int bls_sss(csprng *RNG)

char m[2000];
octet M = {0,sizeof(m),m};

char ski[BGS_ZZZ];
octet SKI = {0,sizeof(ski),ski};
char pki[G2LEN];
Expand Down Expand Up @@ -106,7 +106,7 @@ int bls_sss(csprng *RNG)
printf("\n");

OCT_jstring(&M,"test message");

// Sign the message
BLS_ZZZ_SIGN(&SIGI,&M,&SKI);

Expand Down
10 changes: 5 additions & 5 deletions src/bls.c.in
Expand Up @@ -84,16 +84,16 @@ static int recover_coefficients(int k, octet* X, octet* COEFS)
static void BLS_HASHIT(ECP_ZZZ *P,octet *M)
{
int i;
int j;
int j;
sha3 hs;
char h[MODBYTES_XXX];
octet HM= {0,sizeof(h),h};
SHA3_init(&hs,SHAKE256);
for (i=0; i<M->len; i++)
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
SHA3_shake(&hs,HM.val,MODBYTES_XXX);
HM.len=MODBYTES_XXX;
ECP_ZZZ_mapit(P,&HM);
Expand Down
10 changes: 5 additions & 5 deletions src/bls192.c.in
Expand Up @@ -84,16 +84,16 @@ static int recover_coefficients(int k, octet* X, octet* COEFS)
static void BLS_HASHIT(ECP_ZZZ *P,octet *M)
{
int i;
int j;
int j;
sha3 hs;
char h[MODBYTES_XXX];
octet HM= {0,sizeof(h),h};
SHA3_init(&hs,SHAKE256);
for (i=0; i<M->len; i++)
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
SHA3_shake(&hs,HM.val,MODBYTES_XXX);
HM.len=MODBYTES_XXX;
ECP_ZZZ_mapit(P,&HM);
Expand Down
10 changes: 5 additions & 5 deletions src/bls256.c.in
Expand Up @@ -84,16 +84,16 @@ static int recover_coefficients(int k, octet* X, octet* COEFS)
static void BLS_HASHIT(ECP_ZZZ *P,octet *M)
{
int i;
int j;
int j;
sha3 hs;
char h[MODBYTES_XXX];
octet HM= {0,sizeof(h),h};
SHA3_init(&hs,SHAKE256);
for (i=0; i<M->len; i++)
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
{
j = (unsigned char) M->val[i];
SHA3_process(&hs,j);
}
SHA3_shake(&hs,HM.val,MODBYTES_XXX);
HM.len=MODBYTES_XXX;
ECP_ZZZ_mapit(P,&HM);
Expand Down
4 changes: 2 additions & 2 deletions test/test_bls_ZZZ.c.in
Expand Up @@ -49,7 +49,7 @@ int test(csprng *RNG)

char m[2000];
octet M = {0,sizeof(m),m};

char sk1[BGS_ZZZ];
octet SK1 = {0,sizeof(sk1),sk1};
char pktmp[G2LEN];
Expand Down Expand Up @@ -110,7 +110,7 @@ int test(csprng *RNG)
printf("\n");

OCT_jstring(&M,"test message");

// Sign the message
BLS_ZZZ_SIGN(&SIG1,&M,&SK1);
BLS_ZZZ_SIGN(&SIG2,&M,&SK2);
Expand Down

0 comments on commit 6faaba4

Please sign in to comment.