IPWorks Encrypt 2020 .NET Edition

Questions / Feedback?

HashAlgorithm Property

The hash algorithm used for hash computation.

Syntax

public EccHashAlgorithms HashAlgorithm { get; set; }

enum EccHashAlgorithms { ehaSHA1, ehaSHA224, ehaSHA256, ehaSHA384, ehaSHA512, ehaMD2, ehaMD4, ehaMD5, ehaMD5SHA1, ehaRIPEMD160 }
Public Property HashAlgorithm As EccHashAlgorithms

Enum EccHashAlgorithms ehaSHA1 ehaSHA224 ehaSHA256 ehaSHA384 ehaSHA512 ehaMD2 ehaMD4 ehaMD5 ehaMD5SHA1 ehaRIPEMD160 End Enum

Default Value

2

Remarks

This property specifies the hash algorithm used for hash computation. This is only applicable when calling Sign or VerifySignature and Algorithm specifies a ECDSA key (secp256r1, secp384r1, or secp521r1. Possible values are:

0 (ehaSHA1) SHA-1
1 (ehaSHA224) SHA-224
2 (ehaSHA256 - default) SHA-256
3 (ehaSHA384) SHA-384
4 (ehaSHA512) SHA-512
5 (ehaMD2) MD2
6 (ehaMD4) MD4
7 (ehaMD5) MD5
8 (ehaMD5SHA1) MD5SHA-1
9 (ehaRIPEMD160) RIPEMD-160

When Algorithm specified an EdDSA key this setting is not applicable as the hash algorithm is defined by the specification as SHA-512 for ed25519 and SHAKE-256 for ed448.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 .NET Edition - Version 20.0 [Build 8286]