PCL

Implementation of the MD5 cryptographic hashing algorithm. More...

#include <Cryptography.h>

+ Inheritance diagram for pcl::MD5:

Public Member Functions

 MD5 ()=default
 
 ~MD5 () 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

Message Digest algorithm 5 (MD5) was designed by Ronald Rivest in 1991. MD5 is a widely-used Internet standard published as RFC-1321 by RSA:

http://tools.ietf.org/html/rfc1321

An MD5 message digest (or MD5 hash value) is 128 bits (16 bytes) long.

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

Definition at line 233 of file Cryptography.h.

Constructor & Destructor Documentation

◆ MD5()

pcl::MD5::MD5 ( )
default

Constructs an MD5 hash generator.

◆ ~MD5()

pcl::MD5::~MD5 ( )
override

Destroys an MD5 hash generator.

Member Function Documentation

◆ AlgorithmName()

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

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

Implements pcl::CryptographicHash.

Definition at line 250 of file Cryptography.h.

◆ HashLength()

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

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

As reimplemented in MD5, this function returns 16, the length in bytes of an MD5 digest.

Implements pcl::CryptographicHash.

Definition at line 262 of file Cryptography.h.

◆ Initialize()

void pcl::MD5::Initialize ( )
overridevirtual

Initializes this cryptographic hash generator.

Implements pcl::CryptographicHash.

◆ Update()

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