public final class Encryption
extends java.lang.Object
| Constructor and Description |
|---|
Encryption(InputInfo ii)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Str |
encryption(byte[] in,
byte[] s,
byte[] k,
byte[] a,
boolean ec)
Encrypts or decrypts the given input.
|
Item |
hmac(byte[] msg,
byte[] k,
byte[] a,
byte[] enc)
Creates a message authentication code (MAC) for the given input.
|
public Encryption(InputInfo ii)
ii - input infopublic Str encryption(byte[] in, byte[] s, byte[] k, byte[] a, boolean ec) throws QueryException
in - inputs - encryption typek - secret keya - encryption algorithmec - encrypt or decryptQueryException - query exceptionpublic Item hmac(byte[] msg, byte[] k, byte[] a, byte[] enc) throws QueryException
msg - inputk - secret keya - encryption algorithmenc - encodingQueryException - query exception