| 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 BinaryRC4Decryptor | |
| protected static SecretKey | |
| 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 | |
| BinaryRC4Decryptor | back to summary |
|---|---|
| protected BinaryRC4Decryptor() | |
| BinaryRC4Decryptor | back to summary |
|---|---|
| protected BinaryRC4Decryptor(BinaryRC4Decryptor other) | |
| copy | back to summary |
|---|---|
| public BinaryRC4Decryptor copy() Implements abstract org.
| |
| generateSecretKey | back to summary |
|---|---|
| protected static SecretKey generateSecretKey(String password, EncryptionVerifier ver) | |
| 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.
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | initCipherForBlock(Cipher existing, int block)
Implements abstract org.
|
| BinaryRC4CipherInputStream | back to summary |
|---|---|
| public BinaryRC4CipherInputStream(DocumentInputStream stream, long size) throws GeneralSecurityException | |
| BinaryRC4CipherInputStream | back to summary |
|---|---|
| public BinaryRC4CipherInputStream(InputStream stream, int size, int initialPos) throws GeneralSecurityException | |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher existing, int block) throws GeneralSecurityException Implements abstract org.
| |