| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public XORDecryptor | |
| public ChunkedCipherInputStream | getDataStream(DirectoryNode
the node to read from dir)Implements abstract org. Return a stream with decrypted data. |
| public InputStream | getDataStream(InputStream
the stream to be wrapped stream, int size, int initial/current byte position within the stream initialPos)Overrides org. Wraps a stream for decryption As we are handling streams and don't know the total length beforehand, it's the callers duty to care for the length of the entries. |
| public long | getLength()
Implements abstract org. Returns the length of the encrypted data that can be safely read with
|
| public Cipher | initCipherForBlock(Cipher
may be null, otherwise the given instance is reset to the new block index cipher, int the block index, e.g. the persist/slide id (hslf) block)Overrides org. Initializes a cipher object for a given block index for encryption |
| protected static Cipher | initCipherForBlock(Cipher cipher, int block, EncryptionInfo encryptionInfo, SecretKey skey, int encryptMode)
|
| 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. |
| public boolean | verifyPassword(String password)
Implements abstract org.
|
| chunkSize | back to summary |
|---|---|
| private int chunkSize | |
| length | back to summary |
|---|---|
| private long length | |
| XORDecryptor | back to summary |
|---|---|
| protected XORDecryptor() | |
| XORDecryptor | back to summary |
|---|---|
| protected XORDecryptor(XORDecryptor other) | |
| copy | back to summary |
|---|---|
| public XORDecryptor copy() Implements abstract org.
| |
| getDataStream | back to summary |
|---|---|
| public ChunkedCipherInputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException Implements abstract org. Doc from org. Return a stream with decrypted data.
Use
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(InputStream stream, int size, int initialPos) throws IOException, GeneralSecurityException Overrides org. Doc from org. Wraps a stream for decryption As we are handling streams and don't know the total length beforehand, it's the callers duty to care for the length of the entries.
| |
| getLength | back to summary |
|---|---|
| public long getLength() Implements abstract org. Doc from org. Returns the length of the encrypted data that can be safely read with
The length variable is initialized in
| |
| initCipherForBlock | back to summary |
|---|---|
| public Cipher initCipherForBlock(Cipher cipher, int block) throws GeneralSecurityException Overrides org. Doc from org. Initializes a cipher object for a given block index for encryption
| |
| initCipherForBlock | back to summary |
|---|---|
| protected static Cipher initCipherForBlock(Cipher cipher, int block, EncryptionInfo encryptionInfo, SecretKey skey, int encryptMode) throws GeneralSecurityException | |
| 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
| |
| verifyPassword | back to summary |
|---|---|
| public boolean verifyPassword(String password) Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | initCipherForBlock(Cipher existing, int block)
Implements abstract org.
|
| protected int | invokeCipher(int totalBytes, 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)Overrides org. Decrypts a xor obfuscated byte array. |
| initialOffset | back to summary |
|---|---|
| private final int initialOffset | |
| recordEnd | back to summary |
|---|---|
| private int recordEnd | |
| recordStart | back to summary |
|---|---|
| private int recordStart | |
| XORCipherInputStream | back to summary |
|---|---|
| public XORCipherInputStream(InputStream stream, int initialPos) throws GeneralSecurityException | |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher existing, int block) throws GeneralSecurityException Implements abstract org.
| |
| invokeCipher | back to summary |
|---|---|
| protected int invokeCipher(int totalBytes, 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) Overrides org. Decrypts a xor obfuscated byte array. The data is decrypted in-place
| |