diff options
Diffstat (limited to 'crypto/src/pqc/crypto/sike/SIKEEngine.cs')
-rw-r--r-- | crypto/src/pqc/crypto/sike/SIKEEngine.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/pqc/crypto/sike/SIKEEngine.cs b/crypto/src/pqc/crypto/sike/SIKEEngine.cs index e5cd4e4f6..38a162978 100644 --- a/crypto/src/pqc/crypto/sike/SIKEEngine.cs +++ b/crypto/src/pqc/crypto/sike/SIKEEngine.cs @@ -102,11 +102,10 @@ public class SIKEEngine // todo/org: SIDH.random_mod_order_B(sk, random); byte[] random_digits = new byte[param.SECRETKEY_B_BYTES]; random.NextBytes(random_digits); - random_digits[param.SECRETKEY_B_BYTES-1] &= (byte) param.MASK_BOB; + random_digits[param.SECRETKEY_B_BYTES-1] &= (byte)param.MASK_BOB; System.Array.Copy(s, 0, sk, 0, param.MSG_BYTES); System.Array.Copy(random_digits, 0, sk, param.MSG_BYTES, param.SECRETKEY_B_BYTES); - /// sidh.EphemeralKeyGeneration_B(sk, pk); System.Array.Copy(pk, 0, sk, param.MSG_BYTES + param.SECRETKEY_B_BYTES, param.CRYPTO_PUBLICKEYBYTES); |