Indy 9
TIdHashMessageDigest2
Hierarchy, Methods, See Also, Unit: IdHashMessageDigest
Implements the RSA-MD2 message digest encryption algorithm.
TIdHashMessageDigest2 = class(TIdHashMessageDigest)
Unit
IdHashMessageDigest
Description
TIdHashMessageDigest2 is a TIdHashMessageDigest descendant that implements the RSA-MD2 encryption algorithm as described in the Internet Standards documents:

  • RFC 1115 - Privacy Enhancement for Internet Electronic Mail, Part III - Algorithms, Modes, and Identifiers (http://www.rfc-editor.org/rfc/rfc1115.txt)

  • RFC 1319 - The MD2 Message-Digest Algorithm (http://www.rfc-editor.org/rfc/rfc1319.txt)

TIdHashMessageDigest2 can be used in various cryptography implementations that require the RSA-MD2 algorithm, such as:

  • RFC 1423 - Privacy Enhancement for Internet Electronic Mail, Part III: Algorithms, Modes, and Identifiers (http://www.rfc-editor.org/rfc/rfc1423.txt)

  • RFC 1507- Distributed Authentication Security Service [DASS] (http://www.rfc-editor.org/rfc/rfc1507.txt)

  • RFC 1750 - Randomness Recommendations for Security (http://www.rfc-editor.org/rfc/rfc1750.txt)

  • RFC 2313 - PKCS #1: RSA Encryption Version 1.5 (http://www.rfc-editor.org/rfc/rfc2313.txt)

  • RFC 2315 - PKCS #7: Cryptographic Message Syntax Version 1.5 (http://www.rfc-editor.org/rfc/rfc2315.txt)

  • RFC 2440, OpenPGP Message Format (http://www.rfc-editor.org/rfc/rfc2440.txt)

  • RFC 2459- Internet X.509 Public Key Infrastructure Certificate and CRL Profile (http://www.rfc-editor.org/rfc/rfc2459.txt)

  • RFC 2660 - The Secure HyperText Transfer Protocol (http://www.rfc-editor.org/rfc/rfc2660.txt)

TIdHashMessageDigest2.HashValue
TIdHashMessageDigest2, See Also
Implements calculation of the 128-bit "fingerprint" or "message digest" for the MD2 message digest algorithm.
function HashValue(AStream: TStream): T4x4LongWordRecord; override;
Parameters
AStream: TStream
Stream containing input values for the message digest algorithm.
Return Value
T4x4LongWordRecord - 128-bit message digest calculated from the input data.
Description
HashValue is an overridden T4x4LongWordRecord function in TIdHashMessageDigest2 that implements calculation of the 128-bit "fingerprint" or "message digest" for the values in the AStream input stream. HashValue reads the byte values in AStream, and applies the 18-round substitution algorithm required for MD2.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.