Class HashInfo
Holds information about key size and cipher to use.
public class HashInfo
- Inheritance
-
HashInfo
- Inherited Members
Constructors
HashInfo(int, Func<byte[], HashAlgorithm>, bool)
Initializes a new instance of the HashInfo class.
public HashInfo(int keySize, Func<byte[], HashAlgorithm> hash, bool isEncryptThenMAC = false)
Parameters
keySize
intSize of the key.
hash
Func<byte[], HashAlgorithm>The hash algorithm to use for a given key.
isEncryptThenMAC
booltrue to enable encrypt-then-MAC, false to use encrypt-and-MAC.
Properties
HashAlgorithm
Gets the method for creating a HashAlgorithm instance given a key.
public Func<byte[], HashAlgorithm> HashAlgorithm { get; }
Property Value
- Func<byte[], HashAlgorithm>
IsEncryptThenMAC
Gets a value indicating whether the MAC algorithm will use encrypt-then-MAC ordering.
public bool IsEncryptThenMAC { get; }
Property Value
KeySize
Gets the size of the key.
public int KeySize { get; }
Property Value
- int
The size of the key.