Interface ShortHash.Lazy
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- ShortHash
public static interface ShortHash.Lazy
-
Method Summary
Modifier and TypeMethodDescriptioncryptoShortHash(String in, Key key) Hash a short message using a key.Generate a 64-bit key for short-input hashing.
-
Method Details
-
cryptoShortHashKeygen
Key cryptoShortHashKeygen()Generate a 64-bit key for short-input hashing.- Returns:
- Key in string format.
-
cryptoShortHash
Hash a short message using a key.- Parameters:
in- The short message to hash.key- The key generated viacryptoShortHashKeygen().- Returns:
- Your message hashed of size
ShortHash.BYTES. - Throws:
SodiumException
-