Skip to content

Commit 4d5c384

Browse files
committed
expose scp03 related methods from gpcrypto
1 parent 250535d commit 4d5c384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/src/main/java/pro/javacard/gp/GPCrypto.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static byte[] mac_des_3des(byte[] key, byte[] data, byte[] iv) {
194194
}
195195

196196
// SCP03 related
197-
static byte[] aes_cmac(byte[] key, byte[] data, int lengthBits) {
197+
public static byte[] aes_cmac(byte[] key, byte[] data, int lengthBits) {
198198
// Use BouncyCastle light interface.
199199
BlockCipher cipher = AESEngine.newInstance();
200200
CMac cmac = new CMac(cipher);
@@ -205,7 +205,7 @@ static byte[] aes_cmac(byte[] key, byte[] data, int lengthBits) {
205205
return Arrays.copyOf(out, lengthBits / 8);
206206
}
207207

208-
static byte[] scp03_kdf_blocka(byte constant, int blocklen_bits) {
208+
public static byte[] scp03_kdf_blocka(byte constant, int blocklen_bits) {
209209
// 11 bytes
210210
byte[] label = new byte[]{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
211211

0 commit comments

Comments
 (0)