java.lang.Object
cryptix.jce.test.Util
- abstract class Util
- extends java.lang.Object
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 |
HEX_DIGITS
private static final char[] HEX_DIGITS
Util
Util()
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.