| Modifier and Type | Class and Description |
|---|---|
| private class | AgileEncryptor.
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 byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | confirmPassword(String password)
Implements abstract org.
|
| public void | confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
Implements abstract org.
|
| public AgileEncryptor | |
| protected EncryptionDocument | |
| public OutputStream | getDataStream(DirectoryNode
the node to write to dir)Implements abstract org. Return an output stream for encrypted data. |
| protected void | |
| protected void | updateIntegrityHMAC(File tmpFile, int oleStreamSize)
Generate an HMAC, as specified in [RFC2104], of the encrypted form of the data (message), which the DataIntegrity element will verify by using the Salt generated in step 2 as the key. |
| integritySalt | back to summary |
|---|---|
| private byte[] integritySalt | |
| pwHash | back to summary |
|---|---|
| private byte[] pwHash | |
| AgileEncryptor | back to summary |
|---|---|
| protected AgileEncryptor() | |
| AgileEncryptor | back to summary |
|---|---|
| protected AgileEncryptor(AgileEncryptor other) | |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password) Implements abstract org.
| |
| confirmPassword | back to summary |
|---|---|
| public void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt) Implements abstract org.
| |
| copy | back to summary |
|---|---|
| public AgileEncryptor copy() Implements abstract org.
| |
| createEncryptionDocument | back to summary |
|---|---|
| protected EncryptionDocument createEncryptionDocument() | |
| getDataStream | back to summary |
|---|---|
| public OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException Implements abstract org. Doc from org. Return an output stream for encrypted data.
| |
| marshallEncryptionDocument | back to summary |
|---|---|
| protected void marshallEncryptionDocument(EncryptionDocument ed, LittleEndianByteArrayOutputStream os) | |
| updateIntegrityHMAC | back to summary |
|---|---|
| protected void updateIntegrityHMAC(File tmpFile, int oleStreamSize) throws GeneralSecurityException, IOException Generate an HMAC, as specified in [RFC2104], of the encrypted form of the data (message), which the DataIntegrity element will verify by using the Salt generated in step 2 as the key. Note that the entire EncryptedPackage stream (1), including the StreamSize field, MUST be used as the message. Encrypt the HMAC as in step 3 by using a blockKey byte array consisting of the following bytes: 0xa0, 0x67, 0x7f, 0x02, 0xb2, 0x2c, 0x84, and 0x33. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | calculateChecksum(File fileOut, int oleStreamSize)
Implements abstract org.
|
| protected void | createEncryptionInfoEntry(DirectoryNode dir, File tmpFile)
Implements abstract org.
|
| protected Cipher | initCipherForBlock(Cipher existing, int block, boolean lastChunk)
Implements abstract org.
|
| private void |
| AgileCipherOutputStream | back to summary |
|---|---|
| public AgileCipherOutputStream(DirectoryNode dir) throws IOException, GeneralSecurityException | |
| calculateChecksum | back to summary |
|---|---|
| protected void calculateChecksum(File fileOut, int oleStreamSize) throws GeneralSecurityException, IOException Implements abstract org.
| |
| createEncryptionInfoEntry | back to summary |
|---|---|
| protected void createEncryptionInfoEntry(DirectoryNode dir, File tmpFile) throws IOException Implements abstract org.
| |
| initCipherForBlock | back to summary |
|---|---|
| protected Cipher initCipherForBlock(Cipher existing, int block, boolean lastChunk) throws GeneralSecurityException Implements abstract org.
| |
| marshallEncryptionRecord | back to summary |
|---|---|
| private void marshallEncryptionRecord(LittleEndianByteArrayOutputStream bos) | |