Source/NFX.Web/IO/FileSystem/S3/V4/S3V4Sign/S3V4Signer.cs
/// <summary>
/// Calculates hash of data by key
/// </summary>
Calculates hash of data by key
Calculates hash of data by key
public byte[] ComputeKeyedHash(byte[] key, byte[] data)
      {
        KeyedHashAlgorithm algorithm = KeyedHashAlgorithm.Create(HMACSHA256);
        algorithm.Key = key;
        return algorithm.ComputeHash(data);
      }
public byte [ ] ComputeKeyedHash ( byte [ ] key , byte [ ] data ) { KeyedHashAlgorithm algorithm = KeyedHashAlgorithm . Create ( HMACSHA256 ) ; algorithm . Key = key ; return algorithm . ComputeHash ( data ) ; }
Calculates hash of data by key
Calculates hash of data by key
key
byte[]
data
byte[]