| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private long |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public CryptoAPIDecryptor | |
| protected static SecretKey | |
| public ChunkedCipherInputStream | getDataStream(DirectoryNode
the node to read from dir)Implements abstract org. Return a stream with decrypted data. |
| public ChunkedCipherInputStream | 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 | Returns: the length of the stream returned bygetDataStream(DirectoryNode)Implements abstract org. Returns the length of the encrypted data that can be safely read with
|
| public POIFSFileSystem | getSummaryEntries(DirectoryNode
root directory node of the OLE file containing the encrypted properties root, String name of the encrypted stream -
"encryption" for HSSF/HWPF, "encryptedStream" (or encryptedSummary?) for HSLF encryptedStream)Decrypt the Document-/SummaryInformation and other optionally streams. |
| 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 | |
| CryptoAPIDecryptor | back to summary |
|---|---|
| protected CryptoAPIDecryptor() | |
| CryptoAPIDecryptor | back to summary |
|---|---|
| protected CryptoAPIDecryptor(CryptoAPIDecryptor other) | |
| copy | back to summary |
|---|---|
| public CryptoAPIDecryptor 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 ChunkedCipherInputStream 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
| |
| getSummaryEntries | back to summary |
|---|---|
| public POIFSFileSystem getSummaryEntries(DirectoryNode root, String encryptedStream) throws IOException, GeneralSecurityException Decrypt the Document-/SummaryInformation and other optionally streams. Opposed to other crypto modes, cryptoapi is record based and can't be used to stream-decrypt a whole file. Summary entries are only encrypted within cryptoapi encrypted files. Binary RC4 encrypted files use non-encrypted/default property sets
| |
| 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 |
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | initCipherForBlock(Cipher existing, int block)
Implements abstract org.
|
| CryptoAPICipherInputStream | back to summary |
|---|---|
| public CryptoAPICipherInputStream(InputStream stream, long size, int initialPos) throws GeneralSecurityException | |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher existing, int block) throws GeneralSecurityException Implements abstract org.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv static final BitField | |
| pack-priv int | |
| pack-priv String | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| block | back to summary |
|---|---|
| pack-priv int block | |
| flags | back to summary |
|---|---|
| pack-priv int flags | |
| flagStream | back to summary |
|---|---|
| pack-priv static final BitField flagStream | |
| reserved2 | back to summary |
|---|---|
| pack-priv int reserved2 | |
| streamName | back to summary |
|---|---|
| pack-priv String streamName | |
| streamOffset | back to summary |
|---|---|
| pack-priv int streamOffset | |
| streamSize | back to summary |
|---|---|
| pack-priv int streamSize | |
| StreamDescriptorEntry | back to summary |
|---|---|
| pack-priv StreamDescriptorEntry() | |