PCL

Implementation of the SHA-224 cryptographic hashing algorithm. More...

#include <Cryptography.h>

+ Inheritance diagram for pcl::SHA224:

Public Member Functions

 SHA224 ()=default
 
 ~SHA224 () override
 
String AlgorithmName () const override
 
size_type HashLength () const override
 
void Initialize () override
 
void Update (const void *data, size_type length) override
 
- Public Member Functions inherited from pcl::CryptographicHash
 CryptographicHash ()=default
 
 CryptographicHash (const CryptographicHash &)=delete
 
virtual ~CryptographicHash ()
 
ByteArray Finalize ()
 
template<class C >
ByteArray Hash (const C &data)
 
ByteArray Hash (const void *data, size_type length)
 
void Hash (uint8 *hash, const void *data, size_type length)
 
CryptographicHashoperator= (const CryptographicHash &)=delete
 
template<class C >
void UpdateWithContainer (const C &data)
 

Additional Inherited Members

Detailed Description

References

The SHA-2 family of secure hash functions (SHA-256, SHA-384, and SHA-512) was specified by NIST in 2002 with the publication of FIPS PUB 180-2. The SHA-224 variant was released in a change notice for FIPS PUB 180-2 in 2004. FIPS PUB 180-2 has been superseded by FIPS PUB 180-3 and FIPS PUB 180-4:

http://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf

An SHA-224 message digest is 224 bits (28 bytes) long.

See also
CryptographicHash, MD5, SHA1, SHA256, SHA384, SHA512, CryptographicHashFactory

Definition at line 377 of file Cryptography.h.

Constructor & Destructor Documentation

◆ SHA224()

pcl::SHA224::SHA224 ( )
default

Constructs an SHA-224 hash generator.

◆ ~SHA224()

pcl::SHA224::~SHA224 ( )
override

Destroys an SHA-224 hash generator.

Member Function Documentation

◆ AlgorithmName()

String pcl::SHA224::AlgorithmName ( ) const
inlineoverridevirtual

Returns the name of this cryptographic hashing algorithm: "SHA224".

Implements pcl::CryptographicHash.

Definition at line 394 of file Cryptography.h.

◆ HashLength()

size_type pcl::SHA224::HashLength ( ) const
inlineoverridevirtual

Returns the length in bytes of a hash sequence (or message digest) calculated with this cryptographic hashing algorithm.

As reimplemented in SHA224, this function returns 28, the length in bytes of an SHA-224 digest.

Implements pcl::CryptographicHash.

Definition at line 406 of file Cryptography.h.

◆ Initialize()

void pcl::SHA224::Initialize ( )
overridevirtual

Initializes this cryptographic hash generator.

Implements pcl::CryptographicHash.

◆ Update()

void pcl::SHA224::Update ( const void *  data,
size_type  length 
)
overridevirtual

Updates the hash generator with a new data chunk of the specified length in bytes.

Implements pcl::CryptographicHash.


The documentation for this class was generated from the following file: