| Modifier and Type | Class and Description |
|---|---|
| private class |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | confirmPassword(String password)
Implements abstract org.
|
| public void | confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
Implements abstract org.
|
| public XOREncryptor | |
| public OutputStream | getDataStream(DirectoryNode
the node to write to dir)Implements abstract org. Return an output stream for encrypted data. |
| public XOREncryptor. | getDataStream(OutputStream stream, int initialOffset)
Overrides org.
|
| protected int | |
| public void | setChunkSize(int
the chunk size, i.e. the block size with the same encryption key chunkSize)Overrides org. Sets the chunk size of the data stream. |
| XOREncryptor | back to summary |
|---|---|
| protected XOREncryptor() | |
| XOREncryptor | back to summary |
|---|---|
| protected XOREncryptor(XOREncryptor other) | |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password) Implements abstract org.
| |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt) Implements abstract org.
| |
| copy | back to summary |
|---|---|
| public XOREncryptor copy() Implements abstract org.
| |
| getDataStream | back to summary |
|---|---|
| public OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException Implements abstract org. Doc from org. Return an output stream for encrypted data.
| |
| getDataStream | back to summary |
|---|---|
| public XOREncryptor. Overrides org.
| |
| getKeySizeInBytes | back to summary |
|---|---|
| protected int getKeySizeInBytes() | |
| setChunkSize | back to summary |
|---|---|
| public void setChunkSize(int chunkSize) Overrides org. Doc from org. Sets the chunk size of the data stream. Needs to be set before the data stream is requested. When not set, the implementation uses method specific default values
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | calculateChecksum(File file, int i)
Implements abstract org.
|
| protected void | createEncryptionInfoEntry(DirectoryNode dir, File tmpFile)
Implements abstract org.
|
| public void | flush()
Overrides java. Implements java. Flushes this output stream and forces any buffered output bytes to be written out to the stream. |
| protected Cipher | initCipherForBlock(Cipher cipher, int block, boolean lastChunk)
Implements abstract org.
|
| protected int | invokeCipher(int posInChunk, boolean doFinal)
Overrides org. Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher and uses its own implementation |
| private byte | |
| public void | setNextRecordSize(int
the size of the next record recordSize, boolean true if the record is unencryptedOverrides org. Some ciphers (actually just XOR) are based on the record size, which needs to be set before encryption |
| recordEnd | back to summary |
|---|---|
| private int recordEnd | |
| recordStart | back to summary |
|---|---|
| private int recordStart | |
| XORCipherOutputStream | back to summary |
|---|---|
| public XORCipherOutputStream(OutputStream stream, int initialPos) throws IOException, GeneralSecurityException | |
| XORCipherOutputStream | back to summary |
|---|---|
| public XORCipherOutputStream(DirectoryNode dir) throws IOException, GeneralSecurityException | |
| calculateChecksum | back to summary |
|---|---|
| protected void calculateChecksum(File file, int i) Implements abstract org.
| |
| createEncryptionInfoEntry | back to summary |
|---|---|
| protected void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) Implements abstract org.
| |
| flush | back to summary |
|---|---|
| public void flush() throws IOException Overrides java. Implements java. Doc from java. Flushes this output stream and forces any buffered output bytes to be written out to the stream.
| |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher cipher, int block, boolean lastChunk) throws GeneralSecurityException Implements abstract org.
| |
| invokeCipher | back to summary |
|---|---|
| protected int invokeCipher(int posInChunk, boolean doFinal) Overrides org. Doc from org. Helper function for overriding the cipher invocation, i.e. XOR doesn't use a cipher and uses its own implementation
| |
| rotateLeft | back to summary |
|---|---|
| private byte rotateLeft(byte bits, int shift) | |
| setNextRecordSize | back to summary |
|---|---|
| public void setNextRecordSize(int recordSize, boolean isPlain) Overrides org. Doc from org. Some ciphers (actually just XOR) are based on the record size, which needs to be set before encryption
| |