Package com.goterl.lazysodium.interfaces
Interface Stream.Lazy
- All Known Subinterfaces:
StreamJava.Lazy
- All Known Implementing Classes:
LazySodium,LazySodiumJava
- Enclosing interface:
- Stream
public static interface Stream.Lazy
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]cryptoStream(byte[] nonce, Key key, Stream.Method method) Deprecated, for removal: This API element is subject to removal in a future version.byte[]cryptoStream(int bytes, byte[] nonce, Key key, Stream.Method method) cryptoStreamKeygen(Stream.Method method) cryptoStreamXor(String message, byte[] nonce, Key key, Stream.Method method) cryptoStreamXorDecrypt(String cipher, byte[] nonce, Key key, Stream.Method method) cryptoStreamXorIc(String message, byte[] nonce, long ic, Key key, Stream.Method method) cryptoStreamXorIcDecrypt(String cipher, byte[] nonce, long ic, Key key, Stream.Method method)
-
Method Details
-
cryptoStreamKeygen
-
cryptoStream
@Deprecated(forRemoval=true, since="6.0.0") byte[] cryptoStream(byte[] nonce, Key key, Stream.Method method) Deprecated, for removal: This API element is subject to removal in a future version.UsecryptoStream(int, byte[], Key, Method)instead.Generate 20 bytes of keystream- Parameters:
nonce- Noncekey- Keymethod- Stream cipher to use- Returns:
- 20-byte keystream data
-
cryptoStream
-
cryptoStreamXor
-
cryptoStreamXorDecrypt
-
cryptoStreamXorIc
-
cryptoStreamXorIcDecrypt
String cryptoStreamXorIcDecrypt(String cipher, byte[] nonce, long ic, Key key, Stream.Method method)
-
cryptoStream(int, byte[], Key, Method)instead.