C# 클래스 Amazon.Util.CryptoUtilFactory.CryptoUtil

상속: ICryptoUtil
파일 보기 프로젝트 열기: aws/aws-sdk-net

Private Properties

프로퍼티 타입 설명
CreateKeyedHashAlgorithm KeyedHashAlgorithm
ThreadSafeCreateKeyedHashedAlgorithm KeyedHashAlgorithm

공개 메소드들

메소드 설명
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[]

비공개 메소드들

메소드 설명
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.

메소드 상세

ComputeMD5Hash() 공개 메소드

public ComputeMD5Hash ( Stream steam ) : byte[]
steam Stream
리턴 byte[]

ComputeMD5Hash() 공개 메소드

public ComputeMD5Hash ( byte data ) : byte[]
data byte
리턴 byte[]

ComputeSHA256Hash() 공개 메소드

public ComputeSHA256Hash ( Stream steam ) : byte[]
steam Stream
리턴 byte[]

ComputeSHA256Hash() 공개 메소드

public ComputeSHA256Hash ( byte data ) : byte[]
data byte
리턴 byte[]

HMACSign() 공개 메소드

public HMACSign ( byte data, string key, SigningAlgorithm algorithmName ) : string
data byte
key string
algorithmName SigningAlgorithm
리턴 string

HMACSign() 공개 메소드

public HMACSign ( string data, string key, SigningAlgorithm algorithmName ) : string
data string
key string
algorithmName SigningAlgorithm
리턴 string

HMACSignBinary() 공개 메소드

public HMACSignBinary ( byte data, byte key, SigningAlgorithm algorithmName ) : byte[]
data byte
key byte
algorithmName SigningAlgorithm
리턴 byte[]