Digital Authentication Framework  6.0.1.37
Static Public Member Functions | List of all members
com.good.daf.DAUtil Class Reference

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...
 

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: