From 5142f558d6ff6df6573538fe402b796cab0e98ea Mon Sep 17 00:00:00 2001 From: David Hook Date: Thu, 13 Oct 2022 09:30:16 +1100 Subject: fixed truncation issue in BikeRandom (Harrison patch) --- crypto/src/pqc/crypto/bike/BikeRandomGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/pqc') diff --git a/crypto/src/pqc/crypto/bike/BikeRandomGenerator.cs b/crypto/src/pqc/crypto/bike/BikeRandomGenerator.cs index 4eea5774a..4d9a90252 100644 --- a/crypto/src/pqc/crypto/bike/BikeRandomGenerator.cs +++ b/crypto/src/pqc/crypto/bike/BikeRandomGenerator.cs @@ -84,7 +84,7 @@ namespace Org.BouncyCastle.Pqc.Crypto.Bike { byte[] output = new byte[4]; digest.Output(output, 0, output.Length); - int tmp = Pack.LE_To_UInt16(output, 0); + int tmp = (int)Pack.LE_To_UInt32(output, 0); return tmp; } } -- cgit 1.4.1