Poco

class SHA2Engine

File Information

Library: Foundation
Package: Crypt
Header: Poco/SHA2Engine.h

Description

This class implements the SHA-2 message digest algorithm. (FIPS 180-4, see http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf)

Inheritance

Direct Base Classes: DigestEngine

All Base Classes: DigestEngine

Member Summary

Member Functions: digest, digestLength, reset, updateImpl

Inherited Functions: constantTimeEquals, digest, digestFromHex, digestLength, digestToHex, reset, update, updateImpl

Enumerations

ALGORITHM

SHA_224 = 224

SHA_256 = 256

SHA_384 = 384

SHA_512 = 512

Constructors

SHA2Engine

SHA2Engine(
    ALGORITHM algorithm = SHA_256
);

Destructor

~SHA2Engine virtual

~SHA2Engine();

Member Functions

digest

const DigestEngine::Digest & digest();

digestLength virtual

std::size_t digestLength() const;

reset virtual

void reset();

updateImpl protected virtual

void updateImpl(
    const void * data,
    std::size_t length
);

Securely control IoT edge devices from anywhere   Connect a Device