test master key reset

This commit is contained in:
Michele Balistreri 2017-10-19 14:56:57 +03:00
parent c4b0da3703
commit dc2af3b4fb
1 changed files with 5 additions and 0 deletions

View File

@ -408,6 +408,11 @@ public class WalletAppletTest {
response = cmdSet.deriveKey(new byte[] {0x00, 0x00, 0x00, 0x01, (byte) 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02});
assertEquals(0x9000, response.getSW());
verifyKeyDerivation(keyPair, chainCode, new int[] { 1, 0x80000000, 2});
// Reset master key
response = cmdSet.deriveKey(new byte[0]);
assertEquals(0x9000, response.getSW());
verifyKeyDerivation(keyPair, chainCode, new int[0]);
}
@Test