rename APDUWrapper to SCP02Wrapper

This commit is contained in:
Andrea Franz
2018-11-22 13:01:09 +01:00
parent 41f2473f64
commit 346ab46187
2 changed files with 4 additions and 4 deletions
@@ -6,11 +6,11 @@ import java.util.Arrays;
import im.status.hardwallet_lite_android.io.APDUCommand;
public class APDUWrapper {
public class SCP02Wrapper {
private byte[] macKeyData;
private byte[] icv;
public APDUWrapper(byte[] macKeyData) {
public SCP02Wrapper(byte[] macKeyData) {
this.macKeyData = macKeyData;
this.icv = Crypto.NullBytes8.clone();
}
@@ -9,7 +9,7 @@ import im.status.hardwallet_lite_android.io.CardChannel;
public class SecureChannel {
private CardChannel channel;
private APDUWrapper wrapper;
private SCP02Wrapper wrapper;
public static byte[] DERIVATION_PURPOSE_ENC = new byte[]{(byte) 0x01, (byte) 0x82};
public static byte[] DERIVATION_PURPOSE_MAC = new byte[]{(byte) 0x01, (byte) 0x01};
@@ -17,7 +17,7 @@ public class SecureChannel {
public SecureChannel(CardChannel channel, Keys keys) {
this.channel = channel;
this.wrapper = new APDUWrapper(keys.getMacKeyData());
this.wrapper = new SCP02Wrapper(keys.getMacKeyData());
}
public APDUResponse send(APDUCommand cmd) throws IOException {