| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private JcaJceHelper |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Cipher | |
| public AlgorithmParameters | |
| pack-priv Cipher | |
| pack-priv PGPDataDecryptor | |
| pack-priv PGPDataDecryptor | createDataDecryptor(final int aeadAlgorithm, final byte[] iv, final int chunkSize, final int encAlgorithm, byte[] key)
|
| pack-priv MessageDigest | |
| public KeyAgreement | |
| pack-priv KeyFactory | |
| public KeyPairGenerator | |
| pack-priv Cipher | |
| pack-priv Cipher | |
| private Signature | |
| public Signature | |
| pack-priv Cipher | |
| pack-priv static long | |
| pack-priv String | Returns: a String representation of the hash name.the algorithm ID for a hash algorithm. hashAlgorithm)Return an appropriate name for the hash algorithm represented by the passed in hash algorithm ID number (JCA message digest naming convention). |
| pack-priv static byte[] | |
| pack-priv static void |
| helper | back to summary |
|---|---|
| private JcaJceHelper helper | |
| OperatorHelper | back to summary |
|---|---|
| pack-priv OperatorHelper(JcaJceHelper helper) | |
| createAEADCipher | back to summary |
|---|---|
| pack-priv Cipher createAEADCipher(int encAlgorithm, int aeadAlgorithm) throws PGPException | |
| createAlgorithmParameters | back to summary |
|---|---|
| public AlgorithmParameters createAlgorithmParameters(String algorithm) throws NoSuchProviderException, NoSuchAlgorithmException | |
| createCipher | back to summary |
|---|---|
| pack-priv Cipher createCipher(String cipherName) throws PGPException | |
| createDataDecryptor | back to summary |
|---|---|
| pack-priv PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, int encAlgorithm, byte[] key) throws PGPException | |
| createDataDecryptor | back to summary |
|---|---|
| pack-priv PGPDataDecryptor createDataDecryptor(final int aeadAlgorithm, final byte[] iv, final int chunkSize, final int encAlgorithm, byte[] key) throws PGPException | |
| createDigest | back to summary |
|---|---|
| pack-priv MessageDigest createDigest(int algorithm) throws GeneralSecurityException, PGPException | |
| createKeyAgreement | back to summary |
|---|---|
| public KeyAgreement createKeyAgreement(String algorithm) throws GeneralSecurityException | |
| createKeyFactory | back to summary |
|---|---|
| pack-priv KeyFactory createKeyFactory(String algorithm) throws GeneralSecurityException, PGPException | |
| createKeyPairGenerator | back to summary |
|---|---|
| public KeyPairGenerator createKeyPairGenerator(String algorithm) throws GeneralSecurityException | |
| createKeyWrapper | back to summary |
|---|---|
| pack-priv Cipher createKeyWrapper(int encAlgorithm) throws PGPException | |
| createPublicKeyCipher | back to summary |
|---|---|
| pack-priv Cipher createPublicKeyCipher(int encAlgorithm) throws PGPException | |
| createSignature | back to summary |
|---|---|
| private Signature createSignature(String cipherName) throws PGPException | |
| createSignature | back to summary |
|---|---|
| public Signature createSignature(int keyAlgorithm, int hashAlgorithm) throws PGPException | |
| createStreamCipher | back to summary |
|---|---|
| pack-priv Cipher createStreamCipher(int encAlgorithm, boolean withIntegrityPacket) throws PGPException | |
| getChunkLength | back to summary |
|---|---|
| pack-priv static long getChunkLength(int chunkSize) | |
| getDigestName | back to summary |
|---|---|
| pack-priv String getDigestName(int hashAlgorithm) throws PGPException Return an appropriate name for the hash algorithm represented by the passed in hash algorithm ID number (JCA message digest naming convention).
| |
| getNonce | back to summary |
|---|---|
| pack-priv static byte[] getNonce(byte[] iv, long chunkIndex) | |
| xorChunkId | back to summary |
|---|---|
| pack-priv static void xorChunkId(byte[] nonce, long chunkIndex) | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private final Cipher | |
| private long | |
| private final int | |
| private byte[] | |
| private int | |
| private final InputStream | |
| private final byte[] | |
| private final SecretKey | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | PGPAeadInputStream(InputStream in, Cipher c, SecretKey secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize)
|
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| public int | read()
Implements abstract java. |
| public int | read(byte[]
the buffer into which the data is read. b, int the start offset in array off, int b
at which the data is written.the maximum number of bytes to read. len)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| private byte[] | |
| public long | skip(long
the number of bytes to be skipped. n)Overrides java. n bytes of data from this input
stream.
|
| aaData | back to summary |
|---|---|
| private final byte[] aaData | |
| buf | back to summary |
|---|---|
| private final byte[] buf | |
| c | back to summary |
|---|---|
| private final Cipher c | |
| chunkIndex | back to summary |
|---|---|
| private long chunkIndex | |
| chunkLength | back to summary |
|---|---|
| private final int chunkLength | |
| data | back to summary |
|---|---|
| private byte[] data | |
| dataOff | back to summary |
|---|---|
| private int dataOff | |
| in | back to summary |
|---|---|
| private final InputStream in | |
| iv | back to summary |
|---|---|
| private final byte[] iv | |
| secretKey | back to summary |
|---|---|
| private final SecretKey secretKey | |
| totalBytes | back to summary |
|---|---|
| private long totalBytes | |
| PGPAeadInputStream | back to summary |
|---|---|
| public PGPAeadInputStream(InputStream in, Cipher c, SecretKey secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize) throws IOException | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| readBlock | back to summary |
|---|---|
| private byte[] readBlock() throws IOException | |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final Cipher | |
| private long | |
| private final int | |
| private final byte[] | |
| private int | |
| private final byte[] | |
| private final OutputStream | |
| private final SecretKey | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | PGPAeadOutputStream(OutputStream out, Cipher c, SecretKey secretKey, int encAlgorithm, int aeadAlgorithm, int chunkSize, byte[] iv)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. |
| private void | |
| public void | write(int
the b)byte.Implements abstract java. |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. len bytes from the specified byte array
starting at offset off to this output stream.
|
| private void |
| aaData | back to summary |
|---|---|
| private final byte[] aaData | |
| c | back to summary |
|---|---|
| private final Cipher c | |
| chunkIndex | back to summary |
|---|---|
| private long chunkIndex | |
| chunkLength | back to summary |
|---|---|
| private final int chunkLength | |
| data | back to summary |
|---|---|
| private final byte[] data | |
| dataOff | back to summary |
|---|---|
| private int dataOff | |
| iv | back to summary |
|---|---|
| private final byte[] iv | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| secretKey | back to summary |
|---|---|
| private final SecretKey secretKey | |
| totalBytes | back to summary |
|---|---|
| private long totalBytes | |
| PGPAeadOutputStream | back to summary |
|---|---|
| public PGPAeadOutputStream(OutputStream out, Cipher c, SecretKey secretKey, int encAlgorithm, int aeadAlgorithm, int chunkSize, byte[] iv) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| finish | back to summary |
|---|---|
| private void finish() throws IOException | |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| writeBlock | back to summary |
|---|---|
| private void writeBlock() throws IOException | |