| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private MessageDigest |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | getAlgorithm()
Implements org. algorithm number representing the digest implemented by
this calculator.
|
| public byte[] | getDigest()
Implements org. |
| public OutputStream | getOutputStream()
Implements org. |
| public void | reset()
Implements org. |
| digest | back to summary |
|---|---|
| private MessageDigest 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 | |
| Modifier and Type | Field and Description |
|---|---|
| private MessageDigest |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | |
| 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. len bytes from the specified byte array
starting at offset off to this output stream.
|
| public void | write(byte[]
the data. bytes)Overrides java. b.length bytes from the specified byte array
to this output stream.
|
| public void | write(int
the b)byte.Implements abstract java. |
| dig | back to summary |
|---|---|
| private MessageDigest dig | |
| DigestOutputStream | back to summary |
|---|---|
| pack-priv DigestOutputStream(MessageDigest dig) | |
| getDigest | back to summary |
|---|---|
| pack-priv byte[] getDigest() | |
| 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
| |