C# Class ServiceStack.HmacUtils

Afficher le fichier Open project: ServiceStack/ServiceStack Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static Authenticate ( byte encryptedBytes, byte authKey, byte iv ) : byte[]
encryptedBytes byte
authKey byte
iv byte
Résultat byte[]

CreateHashAlgorithm() public static méthode

public static CreateHashAlgorithm ( byte authKey ) : HMAC
authKey byte
Résultat System.Security.Cryptography.HMAC

DecryptAuthenticated() public static méthode

public static DecryptAuthenticated ( byte authEncryptedBytes, byte cryptKey ) : byte[]
authEncryptedBytes byte
cryptKey byte
Résultat byte[]

Verify() public static méthode

public static Verify ( byte authEncryptedBytes, byte authKey ) : bool
authEncryptedBytes byte
authKey byte
Résultat bool