| Modifier and Type | Class and Description |
|---|---|
| private class | AgileDecryptor.
2.3.4.15 Data Encryption (Agile Encryption) The EncryptedPackage stream (1) MUST be encrypted in 4096-byte segments to facilitate nearly random access while allowing CBC modes to be used in the encryption process. |
| Modifier and Type | Field and Description |
|---|---|
| private long | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public AgileDecryptor | |
| public InputStream | getDataStream(DirectoryNode
the node to read from dir)Implements abstract org. Return a stream with decrypted data. |
| public long | getLength()
Implements abstract org. Returns the length of the encrypted data that can be safely read with
|
| protected static int | |
| pack-priv static byte[] | hashInput(AgileEncryptionVerifier ver, byte[] pwHash, byte[] blockKey, byte[] inputKey, int cipherMode)
|
| protected static Cipher | initCipherForBlock(Cipher existing, int block, boolean lastChunk, EncryptionInfo encryptionInfo, SecretKey skey, int encryptionMode)
|
| private static byte[] | |
| public boolean | verifyPassword(String password)
Implements abstract org. set decryption password |
| _length | back to summary |
|---|---|
| private long _length | |
| kCryptoKeyBlock | back to summary |
|---|---|
| pack-priv static final byte[] kCryptoKeyBlock | |
| kHashedVerifierBlock | back to summary |
|---|---|
| pack-priv static final byte[] kHashedVerifierBlock | |
| kIntegrityKeyBlock | back to summary |
|---|---|
| pack-priv static final byte[] kIntegrityKeyBlock | |
| kIntegrityValueBlock | back to summary |
|---|---|
| pack-priv static final byte[] kIntegrityValueBlock | |
| kVerifierInputBlock | back to summary |
|---|---|
| pack-priv static final byte[] kVerifierInputBlock | |
| AgileDecryptor | back to summary |
|---|---|
| protected AgileDecryptor() | |
| AgileDecryptor | back to summary |
|---|---|
| protected AgileDecryptor(AgileDecryptor other) | |
| copy | back to summary |
|---|---|
| public AgileDecryptor copy() Implements abstract org.
| |
| getDataStream | back to summary |
|---|---|
| public InputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException Implements abstract org. Doc from org. Return a stream with decrypted data.
Use
| |
| 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
| |
| getNextBlockSize | back to summary |
|---|---|
| protected static int getNextBlockSize(int inputLen, int blockSize) | |
| hashInput | back to summary |
|---|---|
| pack-priv static byte[] hashInput(AgileEncryptionVerifier ver, byte[] pwHash, byte[] blockKey, byte[] inputKey, int cipherMode) | |
| initCipherForBlock | back to summary |
|---|---|
| protected static Cipher initCipherForBlock(Cipher existing, int block, boolean lastChunk, EncryptionInfo encryptionInfo, SecretKey skey, int encryptionMode) throws GeneralSecurityException | |
| longToBytes | back to summary |
|---|---|
| private static byte[] longToBytes(long l) | |
| verifyPassword | back to summary |
|---|---|
| public boolean verifyPassword(String password) throws GeneralSecurityException Implements abstract org. set decryption password
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Cipher | initCipherForBlock(Cipher cipher, int block)
Implements abstract org.
|
| AgileCipherInputStream | back to summary |
|---|---|
| public AgileCipherInputStream(DocumentInputStream stream, long size) throws GeneralSecurityException | |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher cipher, int block) throws GeneralSecurityException Implements abstract org.
| |