From 4b2ad71ea982654c1199c2772ea6510e47efe7af Mon Sep 17 00:00:00 2001 From: Subrahmanyaman Date: Sat, 25 Jun 2022 00:41:35 +0000 Subject: [PATCH] Use actual length instead of hard-coding --- .../src/com/android/javacard/keymaster/KMAndroidSEProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/KMAndroidSEProvider.java b/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/KMAndroidSEProvider.java index 5d5a80b4..5545774f 100644 --- a/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/KMAndroidSEProvider.java +++ b/Applet/AndroidSEProvider/src/com/android/javacard/keymaster/KMAndroidSEProvider.java @@ -282,7 +282,7 @@ public KMAndroidSEProvider() { } public void clean() { - Util.arrayFillNonAtomic(tmpArray, (short) 0, (short) 256, (byte) 0); + Util.arrayFillNonAtomic(tmpArray, (short) 0, TMP_ARRAY_SIZE, (byte) 0); } private void initECKey(KeyPair ecKeyPair) {