public static interface Auth.Lazy
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
cryptoAuth(java.lang.String message,
Key key)
Computes a tag for the message in.
|
java.lang.String |
cryptoAuthHMACSha(Auth.Type type,
java.lang.String in,
Key key) |
java.lang.String |
cryptoAuthHMACShaFinal(Auth.StateHMAC256 state) |
java.lang.String |
cryptoAuthHMACShaFinal(Auth.StateHMAC512 state) |
java.lang.String |
cryptoAuthHMACShaFinal(Auth.StateHMAC512256 state) |
boolean |
cryptoAuthHMACShaInit(Auth.StateHMAC256 state,
Key key) |
boolean |
cryptoAuthHMACShaInit(Auth.StateHMAC512256 state,
Key key) |
boolean |
cryptoAuthHMACShaInit(Auth.StateHMAC512 state,
Key key) |
Key |
cryptoAuthHMACShaKeygen(Auth.Type type) |
boolean |
cryptoAuthHMACShaUpdate(Auth.StateHMAC256 state,
java.lang.String in) |
boolean |
cryptoAuthHMACShaUpdate(Auth.StateHMAC512256 state,
java.lang.String in) |
boolean |
cryptoAuthHMACShaUpdate(Auth.StateHMAC512 state,
java.lang.String in) |
boolean |
cryptoAuthHMACShaVerify(Auth.Type type,
java.lang.String authenticator,
java.lang.String message,
Key key) |
Key |
cryptoAuthKeygen()
Generate an authentication key.
|
boolean |
cryptoAuthVerify(java.lang.String tag,
java.lang.String message,
Key key)
Verifies that the tag
valid tag for the message.
|
Key cryptoAuthKeygen()
java.lang.String cryptoAuth(java.lang.String message,
Key key)
throws SodiumException
message - A message.key - The key as generated by cryptoAuthKeygen().SodiumExceptionboolean cryptoAuthVerify(java.lang.String tag,
java.lang.String message,
Key key)
throws SodiumException
tag - The tag.key - The key as generated by cryptoAuthKeygen().SodiumExceptionboolean cryptoAuthHMACShaVerify(Auth.Type type, java.lang.String authenticator, java.lang.String message, Key key)
boolean cryptoAuthHMACShaInit(Auth.StateHMAC256 state, Key key)
boolean cryptoAuthHMACShaUpdate(Auth.StateHMAC256 state, java.lang.String in)
java.lang.String cryptoAuthHMACShaFinal(Auth.StateHMAC256 state) throws SodiumException
SodiumExceptionboolean cryptoAuthHMACShaInit(Auth.StateHMAC512 state, Key key)
boolean cryptoAuthHMACShaUpdate(Auth.StateHMAC512 state, java.lang.String in)
java.lang.String cryptoAuthHMACShaFinal(Auth.StateHMAC512 state) throws SodiumException
SodiumExceptionboolean cryptoAuthHMACShaInit(Auth.StateHMAC512256 state, Key key)
boolean cryptoAuthHMACShaUpdate(Auth.StateHMAC512256 state, java.lang.String in)
java.lang.String cryptoAuthHMACShaFinal(Auth.StateHMAC512256 state) throws SodiumException
SodiumException