EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElPGPWriter.HashAlgorithm

TElPGPWriter    


 

Specifies data hashing algorithm.

 
 

Declaration

[C#]
    int HashAlgorithm;

[VB.NET]
    property HashAlgorithm as integer

[Pascal]
    property HashAlgorithm : TSBPGPHashAlgorithm;
    TSBPGPHashAlgorithm = integer;

[VB6]
    Property HashAlgorithm As TSBxPGPHashAlgorithm

[ActiveX]
    HRESULT _stdcall HashAlgorithm([out, retval] TxSBPGPHashAlgorithm * Result);
    HRESULT _stdcall HashAlgorithm([in] TxSBPGPHashAlgorithm Value);

[DLL]
    not implemented;
 
 

Values:
[.NET] [Pascal] [ActiveX] Value Description
SB_PGP_ALGORITHM_MD_AUTO 0 (0x00) Algorithm is selected automatically. If UseOldPackets = false, SHA1 is used, otherwise MD5 is used.
SB_PGP_ALGORITHM_MD_MD5 1 (0x01) MD5 is used.
SB_PGP_ALGORITHM_MD_SHA1 2 (0x02) SHA1 is used.
SB_PGP_ALGORITHM_MD_RIPEMD160 3 (0x03) RIPEMD160 is used.
SB_PGP_ALGORITHM_MD_SHA256 8 (0x08) SHA 256-bit is used.
SB_PGP_ALGORITHM_MD_SHA384 9 (0x09) SHA 384-bit is used.
SB_PGP_ALGORITHM_MD_SHA512 10 (0x0A) SHA 512-bit is used.
SB_PGP_ALGORITHM_MD_SHA224 11 (0x0B) SHA-224 hash algorithm is used.
Declared in
[.NET] [Pascal]
Namespace: SBPGPConstants
Assembly: SecureBlackbox.PGP
Unit: SBPGPConstants

 
 

Description

    Use this property to get or set algorithm that will be used for hash calculation.
    Default value is SB_PGP_ALGORITHM_MD_AUTO.
    In signatures, produced by DSA-keys, the size of the hash should not be smaller than the length of the Q parameter. By default, hash algorithm used for signatures produced by DSA-keys, uses KeyHashAlgorithm value. Longer hashes are allowed (for example, it is possible to use SHA256 for DSA 1024-bit key), but not all the PGP implementations support such behavior, thus user should be careful in such situations.

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation