| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private final byte[] | |
| private final BlockCipher | |
| private final BlockCipher | |
| private byte[] | |
| private final int | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | SecureFileStore(DataHandler handler, String name, String mode, String cipher, byte[] key, int keyIterations)
|
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | generateSalt()
Overrides org. Generate the random salt bytes if required. |
| protected void | initKey(byte[]
the salt salt)Overrides org. Initialize the key using the given salt. |
| public void | readFully(byte[]
the target buffer b, int the offset off, int the number of bytes to read len)Overrides org. Read a number of bytes. |
| public void | readFullyDirect(byte[]
the target buffer b, int the offset off, int the number of bytes to read len)Overrides org. Read a number of bytes without decrypting. |
| public void | |
| public void | write(byte[]
the source buffer b, int the offset off, int the number of bytes to write len)Overrides org. Write a number of bytes. |
| protected void | writeDirect(byte[]
the source buffer b, int the offset off, int the number of bytes to write len)Overrides org. Write a number of bytes without encrypting. |
| private void |
| buffer | back to summary |
|---|---|
| private byte[] buffer | |
| bufferForInitVector | back to summary |
|---|---|
| private final byte[] bufferForInitVector | |
| cipher | back to summary |
|---|---|
| private final BlockCipher cipher | |
| cipherForInitVector | back to summary |
|---|---|
| private final BlockCipher cipherForInitVector | |
| key | back to summary |
|---|---|
| private byte[] key | |
| keyIterations | back to summary |
|---|---|
| private final int keyIterations | |
| pos | back to summary |
|---|---|
| private long pos | |
| SecureFileStore | back to summary |
|---|---|
| public SecureFileStore(DataHandler handler, String name, String mode, String cipher, byte[] key, int keyIterations) | |
| generateSalt | back to summary |
|---|---|
| protected byte[] generateSalt() Overrides org. Doc from org. Generate the random salt bytes if required.
| |
| initKey | back to summary |
|---|---|
| protected void initKey(byte[] salt) Overrides org. Doc from org. Initialize the key using the given salt.
| |
| readFully | back to summary |
|---|---|
| public void readFully(byte[] b, int off, int len) Overrides org. Doc from org. Read a number of bytes.
| |
| readFullyDirect | back to summary |
|---|---|
| public void readFullyDirect(byte[] b, int off, int len) Overrides org. Doc from org. Read a number of bytes without decrypting.
| |
| seek | back to summary |
|---|---|
| public void seek(long x) Overrides org. Doc from org. Go to the specified file location.
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) Overrides org. Doc from org. Write a number of bytes.
| |
| writeDirect | back to summary |
|---|---|
| protected void writeDirect(byte[] b, int off, int len) Overrides org. Doc from org. Write a number of bytes without encrypting.
| |
| xorInitVector | back to summary |
|---|---|
| private void xorInitVector(byte[] b, int off, int len, long p) | |