PCL

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

#include <Cryptography.h>

+ Inheritance diagram for pcl::SHA1:

Public Member Functions

 SHA1 ()=default
 
 ~SHA1 () 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 Update (const C &data)
 

Additional Inherited Members

Detailed Description

References

The initial Secure Hash Algorithm (SHA) was published by NIST in 1993 as the Secure Hash Standard, FIPS PUB 180. The SHA-1 algorithm was defined in a revised version published in 1995, FIPS PUB 180-1. The latest specification has been released in FIPS PUB 180-4:

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

An SHA-1 message digest (or SHA-1 hash value) is 160 bits (20 bytes) long.

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

Definition at line 305 of file Cryptography.h.

Constructor & Destructor Documentation

◆ SHA1()

pcl::SHA1::SHA1 ( )
default

Constructs an SHA-1 hash generator.

◆ ~SHA1()

pcl::SHA1::~SHA1 ( )
override

Destroys an SHA-1 hash generator.

Member Function Documentation

◆ AlgorithmName()

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

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

Implements pcl::CryptographicHash.

Definition at line 322 of file Cryptography.h.

◆ HashLength()

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

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

As reimplemented in SHA1, this function returns 20, the length in bytes of an SHA-1 digest.

Implements pcl::CryptographicHash.

Definition at line 334 of file Cryptography.h.

◆ Initialize()

void pcl::SHA1::Initialize ( )
overridevirtual

Initializes this cryptographic hash generator.

Implements pcl::CryptographicHash.

◆ Update()

void pcl::SHA1::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: