Discuss this help topic in SecureBlackbox Forum

TElPGPWriter.HashAlgorithm

TElPGPWriter     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Specifies data hashing algorithm.

Declaration

[C#]
    int HashAlgorithm;

[VB.NET]
    Property HashAlgorithm As Integer

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

[C++]
    int32_t get_HashAlgorithm();
    void set_HashAlgorithm(int32_t Value);

[PHP]
    integer get_HashAlgorithm()
    void set_HashAlgorithm(integer $Value)

[Java]
    int getHashAlgorithm();
    void setHashAlgorithm(int Value);

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.

Discuss this help topic in SecureBlackbox Forum