public class BlowfishInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
BlowfishInputStream(byte[] key,
int nOfs,
int nLen,
java.io.InputStream is)
Default constructor.
|
BlowfishInputStream(java.lang.String sPassPhrase,
java.io.InputStream is)
Deprecated.
due to the restrictions in usage and the discarding of some
original key material it is highly recommended not to use it anymore
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
public BlowfishInputStream(byte[] key,
int nOfs,
int nLen,
java.io.InputStream is)
throws java.io.IOException
key - key buffernOfs - where the key material startsnLen - size of the key material (in bytes)is - the input stream from which bytes will be readjava.io.IOException - if the IV couldn't be read outpublic BlowfishInputStream(java.lang.String sPassPhrase,
java.io.InputStream is)
throws java.io.IOException
sPassPhrase - the passphraseis - the input stream from which bytes will be readjava.io.IOException - if the IV couldn't be read outpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionInputStream.read()public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionInputStream.close()