|
JCE Provider
|
This class implements as set of utility functions. More...
Static Public Member Functions | |
| static void | store_int2 (int val, byte[] buf, int pos) |
| <> More... | |
| static void | store_int3 (int val, byte[] buf, int pos) |
| <> More... | |
| static void | store_int4 (int val, byte[] buf, int pos) |
| <> More... | |
| static int | load_int2 (byte[] buf, int pos) |
| <> More... | |
| static int | load_int3 (byte[] buf, int pos) |
| <> More... | |
| static int | load_int4 (byte[] buf, int pos) |
| <> More... | |
| static String | toHexString (int val, int len, char filler) |
| static byte[] | concat (byte[] a, byte[] b) |
| <> More... | |
| static byte[] | copyOf (byte[] a, int ofs, int len) |
| <> More... | |
| static byte[] | lstrip (byte[] a, int c) |
| <> More... | |
| static void | xtrace (PrintStream out, String str, byte[] data) |
| <> More... | |
| static void | xtrace (PrintStream out, byte[] data) |
| <> More... | |
| static void | xtrace (String str, byte[] data) |
| <> More... | |
| static void | xtrace (byte[] data) |
| <> More... | |
This class implements as set of utility functions.
Some of the static methods may be useful for applications that work with the CryptoServer.
|
static |
<>
Concatenates two byte arrays
| a | first byte array |
| b | second byte array |
|
static |
<>
Returns part of a byte array
| a | original byte array |
| ofs | offset to copied area |
| len | number of bytes to be copied |
|
static |
<>
Loads a 2-byte integer from a byte stream. The integer must be stored in big endian order.
| buf | Byte array from which the integer is loaded. |
| pos | Position in the array (index), where the interger is loaded. |
|
static |
<>
Loads a 3-byte integer from a byte stream. The integer must be stored in big endian order.
| buf | Byte array from which the integer is loaded. |
| pos | Position in the array (index), where the interger is loaded. |
|
static |
<>
Loads a 4-byte integer from a byte stream. The integer must be stored in big endian order.
| buf | Byte array from which the integer is loaded. |
| pos | Position in the array (index), where the interger is loaded. |
|
static |
<>
Strips leading characters from the given byte array
| a | byte array to be stripped |
| c | character to be stripped |
|
static |
<>
Stores a 2-byte integer in to byte stream. The integer is stored in big endian order.
| val | Integer value to be stored (unsigned). |
| buf | Byte array into which the integer is stored. |
| pos | Position in the array (index), where the interger is stored. |
|
static |
<>
Stores a 3-byte integer in to byte stream. The integer is stored in big endian order.
| val | Integer value to be stored (unsigned). |
| buf | Byte array into which the integer is stored. |
| pos | Position in the array (index), where the interger is stored. |
|
static |
<>
Stores a 4-byte integer in to byte stream. The integer is stored in big endian order.
| val | Integer value to be stored (unsigned). |
| buf | Byte array into which the integer is stored. |
| pos | Position in the array (index), where the interger is stored. |
|
static |
<>
Prints the contents of a byte array. The byte array is printed hexadecimal and ASCII to System.out.
| data | Byte array to be printed. |
|
static |
<>
Prints the contents of a byte array. The byte array is printed hexadecimal and ASCII to a given PrintStream.
| out | PrintStream to which the output is send. |
| data | Byte array to be printed. |
|
static |
<>
Prints the contents of a byte array. The byte array is printed hexadecimal and ASCII to a given PrintStream.
| out | PrintStream to which the output is send. |
| str | Headline for the output. |
| data | Byte array to be printed. |
|
static |
<>
Prints the contents of a byte array. The byte array is printed hexadecimal and ASCII to System.out.
| str | Headline for the output. |
| data | Byte array to be printed. |