Skip to content

Commit 6629359

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents d619a8c + 9e43e5f commit 6629359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/saber/Symmetric.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void hash_g(byte[] out, byte[] in)
8989
@Override
9090
void prf(byte[] out, byte[] in, int inLen, int outLen)
9191
{
92-
ParametersWithIV kp = new ParametersWithIV(new KeyParameter(in, 0, 32 ), new byte[16]);
92+
ParametersWithIV kp = new ParametersWithIV(new KeyParameter(in, 0, inLen), new byte[16]);
9393
cipher.init(true, kp);
9494
byte[] buf = new byte[outLen]; // TODO: there might be a more efficient way of doing this...
9595
cipher.processBytes(buf, 0, outLen, out, 0);

0 commit comments

Comments
 (0)