Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cryptix.jce.test
Class Util  view Util download Util.java

java.lang.Object
  extended bycryptix.jce.test.Util

abstract class Util
extends java.lang.Object


Field Summary
private static char[] HEX_DIGITS
           
 
Constructor Summary
(package private) Util()
           
 
Method Summary
(package private) static boolean areEqual(byte[] a, byte[] b)
          Compares two byte arrays for equality.
(package private) static int fromDigit(char ch)
          Returns the number from 0 to 15 corresponding to the hex digit ch.
(package private) static byte[] hexFromString(java.lang.String hex)
          Returns a byte array from a string of hexadecimal digits.
(package private) static java.lang.String toString(byte[] ba)
          Returns a string of hexadecimal digits from a byte array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEX_DIGITS

private static final char[] HEX_DIGITS
Constructor Detail

Util

Util()
Method Detail

hexFromString

static byte[] hexFromString(java.lang.String hex)
Returns a byte array from a string of hexadecimal digits.


fromDigit

static int fromDigit(char ch)
Returns the number from 0 to 15 corresponding to the hex digit ch.


areEqual

static boolean areEqual(byte[] a,
                        byte[] b)
Compares two byte arrays for equality.


toString

static java.lang.String toString(byte[] ba)
Returns a string of hexadecimal digits from a byte array. Each byte is converted to 2 hex symbols.