Interface Auth.Lazy
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- Auth
public static interface Auth.Lazy
-
Method Summary
Modifier and TypeMethodDescriptioncryptoAuth(String message, Key key) Computes a tag for the message in.cryptoAuthHMACSha(Auth.Type type, String in, Key key) booleancryptoAuthHMACShaInit(Auth.StateHMAC256 state, Key key) booleancryptoAuthHMACShaInit(Auth.StateHMAC512256 state, Key key) booleancryptoAuthHMACShaInit(Auth.StateHMAC512 state, Key key) booleancryptoAuthHMACShaUpdate(Auth.StateHMAC256 state, String in) booleancryptoAuthHMACShaUpdate(Auth.StateHMAC512256 state, String in) booleancryptoAuthHMACShaUpdate(Auth.StateHMAC512 state, String in) booleancryptoAuthHMACShaVerify(Auth.Type type, String authenticator, String message, Key key) Generate an authentication key.booleancryptoAuthVerify(String tag, String message, Key key) Verifies that the tag valid tag for the message.
-
Method Details
-
cryptoAuthKeygen
Key cryptoAuthKeygen()Generate an authentication key.- Returns:
- An authentication key.
-
cryptoAuth
Computes a tag for the message in.- Parameters:
message- A message.key- The key as generated bycryptoAuthKeygen().- Returns:
- True if successful.
- Throws:
SodiumException
-
cryptoAuthVerify
Verifies that the tag valid tag for the message.- Parameters:
tag- The tag.key- The key as generated bycryptoAuthKeygen().- Returns:
- True if successful verification.
- Throws:
SodiumException
-
cryptoAuthHMACShaKeygen
-
cryptoAuthHMACSha
-
cryptoAuthHMACShaVerify
-
cryptoAuthHMACShaInit
-
cryptoAuthHMACShaUpdate
-
cryptoAuthHMACShaFinal
- Throws:
SodiumException
-
cryptoAuthHMACShaInit
-
cryptoAuthHMACShaUpdate
-
cryptoAuthHMACShaFinal
- Throws:
SodiumException
-
cryptoAuthHMACShaInit
-
cryptoAuthHMACShaUpdate
-
cryptoAuthHMACShaFinal
- Throws:
SodiumException
-