update sdk
This commit is contained in:
parent
57c72b11aa
commit
a5f64f78dd
|
@ -55,7 +55,7 @@ dependencies {
|
|||
testCompile(files("../jcardsim/jcardsim-3.0.5-SNAPSHOT.jar"))
|
||||
testCompile('org.web3j:core:2.3.1')
|
||||
testCompile('org.bitcoinj:bitcoinj-core:0.14.5')
|
||||
testCompile('com.github.status-im.status-keycard-java:desktop:3.0.0')
|
||||
testCompile('com.github.status-im.status-keycard-java:desktop:3.0.2')
|
||||
testCompile('org.bouncycastle:bcprov-jdk15on:1.65')
|
||||
testCompile("org.junit.jupiter:junit-jupiter-api:5.1.1")
|
||||
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.1")
|
||||
|
|
|
@ -4,5 +4,5 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.github.status-im.status-keycard-java:desktop:3.0.0'
|
||||
compile 'com.github.status-im.status-keycard-java:desktop:3.0.2'
|
||||
}
|
|
@ -42,7 +42,6 @@ import java.security.*;
|
|||
|
||||
import org.bouncycastle.jce.interfaces.ECPublicKey;
|
||||
|
||||
import java.security.spec.InvalidKeySpecException;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Random;
|
||||
|
@ -283,13 +282,16 @@ public class KeycardTest {
|
|||
secureChannel.setOpen();
|
||||
response = cmdSet.mutuallyAuthenticate();
|
||||
assertEquals(0x9000, response.getSw());
|
||||
assertTrue(secureChannel.verifyMutuallyAuthenticateResponse(response));
|
||||
|
||||
try {
|
||||
secureChannel.verifyMutuallyAuthenticateResponse(response);
|
||||
} catch (Exception e) {
|
||||
fail("invalid mutually authenticate response");
|
||||
}
|
||||
|
||||
// Verify that the channel is open
|
||||
response = cmdSet.getStatus(KeycardApplet.GET_STATUS_P1_APPLICATION);
|
||||
assertEquals(0x9000, response.getSw());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue