Digital Authentication Framework
6.0.1.37
|
Assorted utility functions. More...
Static Public Member Functions | |
static void | checkLength (String what, int expect, final byte[] data) |
Throws an InvalidArgumentException if data is null or not the expected length. | |
static byte[] | concat (final byte[] a, final byte[] b) |
Concatenates two byte arrays into one. | |
static byte[] | SHA256 (final byte[] input) |
Applies the SHA256 hash function to the input. More... | |
Assorted utility functions.
|
static |
Applies the SHA256 hash function to the input.
Returns a 32-byte array, or throws a RuntimeException.