Exemplo n.º 1
0
        internal byte[] CreateSignature(DateTimeOffset date, string stringToSign)
        {
            //See https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
            //Consists of:
            // Hmac-Sha256(SigningKey, StringToSign)

            return(CryptoHelper.HmacSign(Encoding.UTF8.GetBytes(stringToSign), _keyBuilder.CreateSigningKey(date, "s3")));
        }
Exemplo n.º 2
0
 public byte[] SignatureKeyBuilder()
 {
     return(_signingKeyBuilder.CreateSigningKey(_date, "s3"));
 }