Remove trailing whitespace (#3668)

This commit is contained in:
John Vandenberg
2022-07-07 17:18:20 +08:00
committed by GitHub
parent 0af9524e16
commit 0e6e16645c
1330 changed files with 23570 additions and 23571 deletions

View File

@@ -31,7 +31,7 @@ class HMACEngine: public DigestEngine
/// This class implements the HMAC message
/// authentication code algorithm, as specified
/// in RFC 2104. The underlying DigestEngine
/// (MD5Engine, SHA1Engine, etc.) must be given as
/// (MD5Engine, SHA1Engine, etc.) must be given as
/// template argument.
/// Since the HMACEngine is a DigestEngine, it can
/// be used with the DigestStream class to create
@@ -43,19 +43,19 @@ public:
BLOCK_SIZE = Engine::BLOCK_SIZE,
DIGEST_SIZE = Engine::DIGEST_SIZE
};
HMACEngine(const std::string& passphrase)
{
init(passphrase.data(), passphrase.length());
}
HMACEngine(const char* passphrase, std::size_t length)
{
poco_check_ptr (passphrase);
init(passphrase, length);
}
~HMACEngine()
{
std::memset(_ipad, 0, BLOCK_SIZE);
@@ -63,18 +63,18 @@ public:
delete [] _ipad;
delete [] _opad;
}
std::size_t digestLength() const
{
return DIGEST_SIZE;
}
void reset()
{
_engine.reset();
_engine.update(_ipad, BLOCK_SIZE);
}
const DigestEngine::Digest& digest()
{
const DigestEngine::Digest& d = _engine.digest();
@@ -123,7 +123,7 @@ protected:
}
reset();
}
void updateImpl(const void* data, std::size_t length)
{
_engine.update(data, length);