#include <DigestInputStream.h>
Public Member Functions | |
DigestInputStream (InputStream &in, MessageDigest &m) | |
virtual | ~DigestInputStream () |
virtual int | read () throw (IOException) |
virtual int | read (byte *data, int offset, int length) throw (IOException) |
void | on (bool on) |
MessageDigest & | getMessageDigest () |
void | setMessageDigest (MessageDigest &m) |
Protected Attributes | |
MessageDigest & | digest |
beecrypt::security::DigestInputStream::DigestInputStream | ( | InputStream & | in, | |
MessageDigest & | m | |||
) |
virtual beecrypt::security::DigestInputStream::~DigestInputStream | ( | ) | [inline, virtual] |
MessageDigest& beecrypt::security::DigestInputStream::getMessageDigest | ( | ) |
void beecrypt::security::DigestInputStream::on | ( | bool | on | ) |
virtual int beecrypt::security::DigestInputStream::read | ( | byte * | data, | |
int | offset, | |||
int | length | |||
) | throw (IOException) [virtual] |
virtual int beecrypt::security::DigestInputStream::read | ( | ) | throw (IOException) [virtual] |
Reimplemented from beecrypt::io::FilterInputStream.
void beecrypt::security::DigestInputStream::setMessageDigest | ( | MessageDigest & | m | ) |