Skip to main content

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
TypeName
System.Byte[]authKey

Authenticate(Byte[], Byte[], Byte[])

View Source
Declaration
public static byte[] Authenticate(byte[] encryptedBytes, byte[] authKey, byte[] iv)
Returns

System.Byte[]

Parameters
TypeName
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
TypeName
System.Byte[]authEncryptedBytes
System.Byte[]authKey

DecryptAuthenticated(Byte[], Byte[])

View Source
Declaration
public static byte[] DecryptAuthenticated(byte[] authEncryptedBytes, byte[] cryptKey)
Returns

System.Byte[]

Parameters
TypeName
System.Byte[]authEncryptedBytes
System.Byte[]cryptKey