rename APDUWrapper to SCP02Wrapper
This commit is contained in:
+2
-2
@@ -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();
|
||||
}
|
||||
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user