C# Class ServiceStack.HmacUtils

Mostra file Open project: ServiceStack/ServiceStack Class Usage Examples

Public Methods

Method Description
Authenticate ( byte encryptedBytes, byte authKey, byte iv ) : byte[]
CreateHashAlgorithm ( byte authKey ) : HMAC
DecryptAuthenticated ( byte authEncryptedBytes, byte cryptKey ) : byte[]
Verify ( byte authEncryptedBytes, byte authKey ) : bool

Method Details

Authenticate() public static method

public static Authenticate ( byte encryptedBytes, byte authKey, byte iv ) : byte[]
encryptedBytes byte
authKey byte
iv byte
return byte[]

CreateHashAlgorithm() public static method

public static CreateHashAlgorithm ( byte authKey ) : HMAC
authKey byte
return System.Security.Cryptography.HMAC

DecryptAuthenticated() public static method

public static DecryptAuthenticated ( byte authEncryptedBytes, byte cryptKey ) : byte[]
authEncryptedBytes byte
cryptKey byte
return byte[]

Verify() public static method

public static Verify ( byte authEncryptedBytes, byte authKey ) : bool
authEncryptedBytes byte
authKey byte
return bool