jdk/test/sun/security/pkcs11/PKCS11Test.java
changeset 32635 d7e4ba3c2e0d
parent 32138 23830562d3d1
child 33493 442660a9b96f
--- a/jdk/test/sun/security/pkcs11/PKCS11Test.java	Mon Sep 14 19:49:28 2015 +0300
+++ b/jdk/test/sun/security/pkcs11/PKCS11Test.java	Mon Sep 14 19:54:58 2015 +0300
@@ -33,6 +33,8 @@
 
 public abstract class PKCS11Test {
 
+    static final String PKCS11 = "PKCS11";
+
     // directory of the test source
     static final String BASE = System.getProperty("test.src", ".");
 
@@ -644,4 +646,12 @@
             return "";
         }
     }
+
+    static byte[] generateData(int length) {
+        byte data[] = new byte[length];
+        for (int i=0; i<data.length; i++) {
+            data[i] = (byte) (i % 256);
+        }
+        return data;
+    }
 }