C# Class Amazon.Util.CryptoUtilFactory.CryptoUtil

Inheritance: ICryptoUtil
Afficher le fichier Open project: aws/aws-sdk-net

Private Properties

Свойство Type Description
CreateKeyedHashAlgorithm KeyedHashAlgorithm
ThreadSafeCreateKeyedHashedAlgorithm KeyedHashAlgorithm

Méthodes publiques

Méthode Description
ComputeMD5Hash ( Stream steam ) : byte[]
ComputeMD5Hash ( byte data ) : byte[]
ComputeSHA256Hash ( Stream steam ) : byte[]
ComputeSHA256Hash ( byte data ) : byte[]
HMACSign ( byte data, string key, SigningAlgorithm algorithmName ) : string
HMACSign ( string data, string key, SigningAlgorithm algorithmName ) : string
HMACSignBinary ( byte data, byte key, SigningAlgorithm algorithmName ) : byte[]

Private Methods

Méthode Description
CreateKeyedHashAlgorithm ( SigningAlgorithm algorithmName ) : KeyedHashAlgorithm
ThreadSafeCreateKeyedHashedAlgorithm ( SigningAlgorithm algorithmName ) : KeyedHashAlgorithm

The iOS il2cpp implementation of System.Security.Cryptography.RandomNumberGenerator, which is called by the initialization of KeyedHashAlgorithm.Create for a given algorithm name, is not threadsafe. We keep track of which algorithms have been initialized, and retain a lock if this is the first time we create a particular algorithm.

Method Details

ComputeMD5Hash() public méthode

public ComputeMD5Hash ( Stream steam ) : byte[]
steam Stream
Résultat byte[]

ComputeMD5Hash() public méthode

public ComputeMD5Hash ( byte data ) : byte[]
data byte
Résultat byte[]

ComputeSHA256Hash() public méthode

public ComputeSHA256Hash ( Stream steam ) : byte[]
steam Stream
Résultat byte[]

ComputeSHA256Hash() public méthode

public ComputeSHA256Hash ( byte data ) : byte[]
data byte
Résultat byte[]

HMACSign() public méthode

public HMACSign ( byte data, string key, SigningAlgorithm algorithmName ) : string
data byte
key string
algorithmName SigningAlgorithm
Résultat string

HMACSign() public méthode

public HMACSign ( string data, string key, SigningAlgorithm algorithmName ) : string
data string
key string
algorithmName SigningAlgorithm
Résultat string

HMACSignBinary() public méthode

public HMACSignBinary ( byte data, byte key, SigningAlgorithm algorithmName ) : byte[]
data byte
key byte
algorithmName SigningAlgorithm
Résultat byte[]