Is it possible to compute a HMAC in .NET using a key that has been persisted as a CNGkey object?

64 Views Asked by At

Is it possible to compute a HMAC in .NET using a key that has been persisted as a CNGkey object?

There are a variety of encryption algorithms supported in .NET and .NET Framework that support this - such as AESCng; however, from what I can see, all HMAC constructors require the key value to be inputted into the HMAC constructor as a raw byte array (as opposed to the name of the persisted key to be used in the case of AES).

0

There are 0 best solutions below