Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Jun 2, 2020
1 parent 57c72b1 commit a5f64f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
10 changes: 6 additions & 4 deletions src/test/java/im/status/keycard/KeycardTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@

import org.bouncycastle.jce.interfaces.ECPublicKey;

import java.security.spec.InvalidKeySpecException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Random;
Expand Down Expand Up @@ -283,13 +282,16 @@ void openSecureChannelTest() throws Exception {
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
Expand Down

0 comments on commit a5f64f7

Please sign in to comment.