| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getAlgorithm()
Implements org. Return the |
| public byte[] | getDigest()
Implements org. Return the digest calculated on what has been written to the calculator's output stream. |
| public OutputStream | getOutputStream()
Implements org. Returns a stream that will accept data for the purpose of calculating a digest. |
| public void | reset()
Implements org. Reset the underlying digest calculator |
| digest | back to summary |
|---|---|
| private Digest digest | |
| SHA1PGPDigestCalculator | back to summary |
|---|---|
| pack-priv SHA1PGPDigestCalculator() | |
| getAlgorithm | back to summary |
|---|---|
| public int getAlgorithm() Implements org. Doc from org. Return the
| |
| getDigest | back to summary |
|---|---|
| public byte[] getDigest() Implements org. Doc from org. Return the digest calculated on what has been written to the calculator's output stream.
| |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() Implements org. Doc from org. Returns a stream that will accept data for the purpose of calculating a digest. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.
| |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Reset the underlying digest calculator | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | write(byte[]
the data. bytes, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| public void | write(byte[]
the data. bytes)Overrides java. Writes |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| dig | back to summary |
|---|---|
| private Digest dig | |
| DigestOutputStream | back to summary |
|---|---|
| pack-priv DigestOutputStream(Digest dig) | |
| write | back to summary |
|---|---|
| public void write(byte[] bytes, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |
| write | back to summary |
|---|---|
| public void write(byte[] bytes) throws IOException Overrides java. Doc from java. Writes
| |
| 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
| |