HMACSHA384 Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HMACSHA384 class.
Overloads
HMACSHA384() |
Initializes a new instance of the HMACSHA384 class by using a randomly generated key. |
HMACSHA384(Byte[]) |
Initializes a new instance of the HMACSHA384 class by using the specified key data. |
HMACSHA384()
- Source:
- HMACSHA384.cs
- Source:
- HMACSHA384.cs
- Source:
- HMACSHA384.cs
Initializes a new instance of the HMACSHA384 class by using a randomly generated key.
public:
HMACSHA384();
public HMACSHA384 ();
Public Sub New ()
Remarks
This constructor uses a 64-byte, randomly generated key.
See also
Applies to
HMACSHA384(Byte[])
- Source:
- HMACSHA384.cs
- Source:
- HMACSHA384.cs
- Source:
- HMACSHA384.cs
Initializes a new instance of the HMACSHA384 class by using the specified key data.
public:
HMACSHA384(cli::array <System::Byte> ^ key);
public HMACSHA384 (byte[] key);
new System.Security.Cryptography.HMACSHA384 : byte[] -> System.Security.Cryptography.HMACSHA384
Public Sub New (key As Byte())
Parameters
- key
- Byte[]
The secret key for HMAC computation. The key can be any length. However, the recommended size is 128 bytes. If the key is more than 128 bytes long, it is hashed (using SHA-384) to derive a 48-byte key.
Exceptions
The key
parameter is null
.
Examples
For an example of how to use this constructor, see the HMACSHA384 class.