Skip to content

Commit 559b1f8

Browse files
committed
Calling the key's deriveChildKey avoids future problems
1 parent a39412c commit 559b1f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎core/src/test/java/org/bouncycastle/crypto/params/HSSTests.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ public void testIndexAndComponentIndexClaimedTogether()
13881388
byte[] seed = Hex.decode("0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20");
13891389

13901390
LMSPrivateKeyParameters root = new LMSPrivateKeyParameters(sigParams, otsParams, 0, I, twoToH, seed);
1391-
byte[][] child = LMSEngine.deriveChildKey(otsParams, I, seed, 0);
1391+
byte[][] child = root.deriveChildKey();
13921392
GatedKey bottom = new GatedKey(sigParams, otsParams, 0, child[0], twoToH, child[1]);
13931393

13941394
// the root signs the bottom key's public key, which advances the root's q to 1 - the

0 commit comments

Comments
 (0)