Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
claucece committed Jan 24, 2024
1 parent 0b4f2c0 commit 8db36f4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/mayo.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ static void reduce_A_mod_fX(unsigned char *A, int m, int k, int A_cols,
#define MAYO_POSITION_IN_UPPER_TRIAGONAL_MATRIX(i, j, size) \
(i * size + j - (i * (i + 1) / 2))


// Public API
// Public API for the MAYO scheme:
// mayo_keypair corresponds to key pair generation
// mayo_sign corresponds to signature generation
// mayo_open corresponds to verification of signature

int mayo_keypair(const mayo_params_t *p, unsigned char *pk, unsigned char *sk) {
int ret = 0;
Expand Down Expand Up @@ -339,10 +341,10 @@ int mayo_keypair_compact(const mayo_params_t *p, unsigned char *cpk,
goto err;
}

// S ← shake256(seedsk, pk seed bytes + O bytes)
// S ← shake256(seed_sk, pk_seed_bytes + O_bytes)
shake256(S, param_pk_seed_bytes + param_O_bytes, seed_sk,
param_sk_seed_bytes);
// seed_pk ← s[0 : pk_seed_bytes]
// seed_pk ← S[0 : pk_seed_bytes]
seed_pk = S;

// o ← Decode_o(s[pk_seed_bytes : pk_seed_bytes + o_bytes])
Expand Down

0 comments on commit 8db36f4

Please sign in to comment.