Skip to content

Commit

Permalink
Update sike.c
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklonga authored Sep 8, 2017
1 parent 036bea0 commit 2074a74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test/sike.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int crypto_kem_keypair(unsigned char *pk, unsigned char *sk)

// Generate lower portion of secret key sk <- s||SK
RandomBytesFunction(sk, CRYPTO_BYTES);
random_mod_order_B(sk + CRYPTO_BYTES);
random_mod_order_B(sk + CRYPTO_BYTES); // Get random value in [0, 2^Floor(Log(2,oB))-1]

// Generate public key pk
EphemeralKeyGeneration_B(sk + CRYPTO_BYTES, pk);
Expand Down Expand Up @@ -99,4 +99,4 @@ int crypto_kem_dec(unsigned char *ss, const unsigned char *ct, const unsigned ch
}

return 0;
}
}

0 comments on commit 2074a74

Please sign in to comment.