| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| protected EncryptionInfo | |
| private byte[] | |
| private byte[] | |
| private SecretKey | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Decryptor | |
| protected int | |
| public abstract InputStream | Returns: decrypted streamthe node to read from dir)Return a stream with decrypted data. |
| public InputStream | Returns: decrypted streamthe stream to be wrapped stream, int size, int initial/current byte position within the stream initialPos)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 InputStream | |
| public EncryptionInfo | |
| public Map | |
| public static Decryptor | |
| public byte[] | |
| public byte[] | |
| protected int | |
| public abstract long | Returns: length of the encrypted dataReturns the length of the encrypted data that can be safely read with
|
| public SecretKey | |
| public byte[] | |
| public Cipher | Returns: a new cipher object, if cipher was null, otherwise the reinitialized ciphermay 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)Initializes a cipher object for a given block index for encryption |
| public void | setChunkSize(int
the chunk size, i.e. the block size with the same encryption key chunkSize)Sets the chunk size of the data stream. |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public abstract boolean |
| DEFAULT_PASSWORD | back to summary |
|---|---|
public static final String DEFAULT_PASSWORD
| |
| DEFAULT_POIFS_ENTRY | back to summary |
|---|---|
| public static final String DEFAULT_POIFS_ENTRY | |
| encryptionInfo | back to summary |
|---|---|
| protected EncryptionInfo encryptionInfo | |
| integrityHmacKey | back to summary |
|---|---|
| private byte[] integrityHmacKey | |
| integrityHmacValue | back to summary |
|---|---|
| private byte[] integrityHmacValue | |
| secretKey | back to summary |
|---|---|
| private SecretKey secretKey | |
| verifier | back to summary |
|---|---|
| private byte[] verifier | |
| Decryptor | back to summary |
|---|---|
| protected Decryptor() | |
| Decryptor | back to summary |
|---|---|
| protected Decryptor(Decryptor other) | |
| copy | back to summary |
|---|---|
| public abstract Decryptor copy() | |
| getBlockSizeInBytes | back to summary |
|---|---|
protected int getBlockSizeInBytes()
| |
| getDataStream | back to summary |
|---|---|
| public abstract InputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException Return a stream with decrypted data.
Use
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(InputStream stream, int size, int initialPos) throws IOException, GeneralSecurityException 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.
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(POIFSFileSystem fs) throws IOException, GeneralSecurityException | |
| getEncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo getEncryptionInfo() | |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getInstance | back to summary |
|---|---|
| public static Decryptor getInstance(EncryptionInfo info) | |
| getIntegrityHmacKey | back to summary |
|---|---|
| public byte[] getIntegrityHmacKey() | |
| getIntegrityHmacValue | back to summary |
|---|---|
public byte[] getIntegrityHmacValue()
| |
| getKeySizeInBytes | back to summary |
|---|---|
| protected int getKeySizeInBytes() | |
| getLength | back to summary |
|---|---|
| public abstract long getLength() Returns the length of the encrypted data that can be safely read with
The length variable is initialized in
| |
| getSecretKey | back to summary |
|---|---|
| public SecretKey getSecretKey() | |
| getVerifier | back to summary |
|---|---|
| public byte[] getVerifier() | |
| initCipherForBlock | back to summary |
|---|---|
| public Cipher initCipherForBlock(Cipher cipher, int block) throws GeneralSecurityException Initializes a cipher object for a given block index for encryption
| |
| setChunkSize | back to summary |
|---|---|
| public void setChunkSize(int chunkSize) 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
| |
| setEncryptionInfo | back to summary |
|---|---|
| public void setEncryptionInfo(EncryptionInfo encryptionInfo) | |
| setIntegrityHmacKey | back to summary |
|---|---|
| protected void setIntegrityHmacKey(byte[] integrityHmacKey) | |
| setIntegrityHmacValue | back to summary |
|---|---|
| protected void setIntegrityHmacValue(byte[] integrityHmacValue) | |
| setSecretKey | back to summary |
|---|---|
| protected void setSecretKey(SecretKey secretKey) | |
| setVerifier | back to summary |
|---|---|
| protected void setVerifier(byte[] verifier) | |
| verifyPassword | back to summary |
|---|---|
| public abstract boolean verifyPassword(String password) throws GeneralSecurityException | |