spec.benchmarks.crypto
Class Util

java.lang.Object
  extended by spec.benchmarks.crypto.Util

public class Util
extends java.lang.Object


Field Summary
static java.lang.String TEST_DATA_1
           
static java.lang.String TEST_DATA_2
           
static java.lang.String TEST_DATA_3
           
static java.lang.String TEST_DATA_4
           
static java.lang.String TEST_DATA_5
           
static java.lang.String TEST_DATA_6
           
static java.lang.String TEST_DATA_BASE
           
 
Constructor Summary
Util()
           
 
Method Summary
static boolean check(byte[] ba1, byte[] ba2)
           
static int checkSum(byte[] arr)
           
static void createRandomTestData(java.lang.String fileName, int length)
           
static byte[] getTestData(java.lang.String name)
          Will collect the test data from FileCache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_DATA_BASE

public static final java.lang.String TEST_DATA_BASE

TEST_DATA_1

public static final java.lang.String TEST_DATA_1

TEST_DATA_2

public static final java.lang.String TEST_DATA_2

TEST_DATA_3

public static final java.lang.String TEST_DATA_3

TEST_DATA_4

public static final java.lang.String TEST_DATA_4

TEST_DATA_5

public static final java.lang.String TEST_DATA_5

TEST_DATA_6

public static final java.lang.String TEST_DATA_6
Constructor Detail

Util

public Util()
Method Detail

getTestData

public static final byte[] getTestData(java.lang.String name)
Will collect the test data from FileCache.

Parameters:
name - The file to collect.
Returns:
An byte buffer with the test data.

createRandomTestData

public static void createRandomTestData(java.lang.String fileName,
                                        int length)
                                 throws java.io.IOException
Throws:
java.io.IOException

checkSum

public static final int checkSum(byte[] arr)

check

public static final boolean check(byte[] ba1,
                                  byte[] ba2)