update sdk

This commit is contained in:
Michele Balistreri 2020-06-02 10:26:57 +03:00
parent 57c72b11aa
commit a5f64f78dd
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
3 changed files with 8 additions and 6 deletions

View File

@ -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")

View File

@ -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'
}

View File

@ -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