HmacUtils
Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class HmacUtils
Fields
KeySize
View Source
Declaration
public const int KeySize = 256
KeySizeBytes
View Source
Declaration
public const int KeySizeBytes = 32
Methods
CreateHashAlgorithm(Byte[])
View Source
Declaration
public static HMAC CreateHashAlgorithm(byte[] authKey)
Returns
System.Security.Cryptography.HMAC
Parameters
Type | Name |
---|---|
System.Byte[] | authKey |
Authenticate(Byte[], Byte[], Byte[])
View Source
Declaration
public static byte[] Authenticate(byte[] encryptedBytes, byte[] authKey, byte[] iv)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | encryptedBytes |
System.Byte[] | authKey |
System.Byte[] | iv |
Verify(Byte[], Byte[])
View Source
Declaration
public static bool Verify(byte[] authEncryptedBytes, byte[] authKey)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Byte[] | authEncryptedBytes |
System.Byte[] | authKey |
DecryptAuthenticated(Byte[], Byte[])
View Source
Declaration
public static byte[] DecryptAuthenticated(byte[] authEncryptedBytes, byte[] cryptKey)
Returns
System.Byte[]
Parameters
Type | Name |
---|---|
System.Byte[] | authEncryptedBytes |
System.Byte[] | cryptKey |