public static interface Auth.Native
| Modifier and Type | Method and Description |
|---|---|
boolean |
cryptoAuth(byte[] tag,
byte[] in,
long inLen,
byte[] key)
Computes a tag for the message in, whose length is inLen bytes, and the key k.
|
boolean |
cryptoAuthHMACSha256(byte[] out,
byte[] in,
long inLen,
byte[] k) |
boolean |
cryptoAuthHMACSha256Final(Auth.StateHMAC256 state,
byte[] out) |
boolean |
cryptoAuthHMACSha256Init(Auth.StateHMAC256 state,
byte[] key,
int keyLen) |
void |
cryptoAuthHMACSha256Keygen(byte[] key) |
boolean |
cryptoAuthHMACSha256Update(Auth.StateHMAC256 state,
byte[] in,
long inLen) |
boolean |
cryptoAuthHMACSha256Verify(byte[] h,
byte[] in,
long inLen,
byte[] k) |
boolean |
cryptoAuthHMACSha512(byte[] out,
byte[] in,
long inLen,
byte[] k) |
boolean |
cryptoAuthHMACSha512256(byte[] out,
byte[] in,
long inLen,
byte[] k) |
boolean |
cryptoAuthHMACSha512256Final(Auth.StateHMAC512256 state,
byte[] out) |
boolean |
cryptoAuthHMACSha512256Init(Auth.StateHMAC512256 state,
byte[] key,
int keyLen) |
void |
cryptoAuthHMACSha512256Keygen(byte[] key) |
boolean |
cryptoAuthHMACSha512256Update(Auth.StateHMAC512256 state,
byte[] in,
long inLen) |
boolean |
cryptoAuthHMACSha512256Verify(byte[] h,
byte[] in,
long inLen,
byte[] k) |
boolean |
cryptoAuthHMACSha512Final(Auth.StateHMAC512 state,
byte[] out) |
boolean |
cryptoAuthHMACSha512Init(Auth.StateHMAC512 state,
byte[] key,
int keyLen) |
void |
cryptoAuthHMACSha512Keygen(byte[] key) |
boolean |
cryptoAuthHMACSha512Update(Auth.StateHMAC512 state,
byte[] in,
long inLen) |
boolean |
cryptoAuthHMACSha512Verify(byte[] h,
byte[] in,
long inLen,
byte[] k) |
void |
cryptoAuthKeygen(byte[] k)
Generate an authentication key.
|
boolean |
cryptoAuthVerify(byte[] tag,
byte[] in,
long inLen,
byte[] key)
Verifies that the tag stored at h is a
valid tag for the message in whose length
is inLen bytes, and the key k.
|
void cryptoAuthKeygen(byte[] k)
k - Auth key of size Auth.KEYBYTES.boolean cryptoAuth(byte[] tag,
byte[] in,
long inLen,
byte[] key)
tag - Tag of size Auth.BYTES.in - A message.inLen - Message size.key - The key as generated by cryptoAuthKeygen(byte[]).boolean cryptoAuthVerify(byte[] tag,
byte[] in,
long inLen,
byte[] key)
tag - The tag.in - The message.inLen - Message bytes.key - The key as generated by cryptoAuthKeygen(byte[]).void cryptoAuthHMACSha256Keygen(byte[] key)
boolean cryptoAuthHMACSha256(byte[] out,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha256Verify(byte[] h,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha256Init(Auth.StateHMAC256 state, byte[] key, int keyLen)
boolean cryptoAuthHMACSha256Update(Auth.StateHMAC256 state, byte[] in, long inLen)
boolean cryptoAuthHMACSha256Final(Auth.StateHMAC256 state, byte[] out)
void cryptoAuthHMACSha512Keygen(byte[] key)
boolean cryptoAuthHMACSha512(byte[] out,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha512Verify(byte[] h,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha512Init(Auth.StateHMAC512 state, byte[] key, int keyLen)
boolean cryptoAuthHMACSha512Update(Auth.StateHMAC512 state, byte[] in, long inLen)
boolean cryptoAuthHMACSha512Final(Auth.StateHMAC512 state, byte[] out)
void cryptoAuthHMACSha512256Keygen(byte[] key)
boolean cryptoAuthHMACSha512256(byte[] out,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha512256Verify(byte[] h,
byte[] in,
long inLen,
byte[] k)
boolean cryptoAuthHMACSha512256Init(Auth.StateHMAC512256 state, byte[] key, int keyLen)
boolean cryptoAuthHMACSha512256Update(Auth.StateHMAC512256 state, byte[] in, long inLen)
boolean cryptoAuthHMACSha512256Final(Auth.StateHMAC512256 state, byte[] out)