TspRfc3161Request Constructor (Oid, Byte) |
Initializes a new instance of TspRequest from hash algorithm and data to hash.
Namespace:
SysadminsLV.PKI.Cryptography
Assembly:
SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax public TspRfc3161Request(
Oid hashAlgorithm,
byte[] data
)
Public Sub New (
hashAlgorithm As Oid,
data As Byte()
)
public:
TspRfc3161Request(
Oid^ hashAlgorithm,
array<unsigned char>^ data
)
new :
hashAlgorithm : Oid *
data : byte[] -> TspRfc3161Request
Parameters
- hashAlgorithm
- Type: System.Security.CryptographyOid
A hash algorithm to hash the data.
- data
- Type: SystemByte
Data to hash.
Exceptions Exception | Condition |
---|
ArgumentNullException | hashAlgorithm or data is null.
|
CryptographicException | hashAlgorithm is invalid hashing algorithm.
|
See Also