Digital Authentication Framework 4.2.0.30
Static Public Member Functions

com.good.daf.DAUtil Class Reference

Assorted utility functions. More...

List of all members.

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.

Detailed Description

Assorted utility functions.


Member Function Documentation

static byte [] com.good.daf.DAUtil.SHA256 ( final byte[]  input) [static]

Applies the SHA256 hash function to the input.

Returns a 32-byte array, or throws a RuntimeException.


The documentation for this class was generated from the following file: