function s3UploadSignature(config, policyBase64, credential) {
  const dateKey = hmac('AWS4' + config.secretKey, dateString());
  const dateRegionKey = hmac(dateKey, config.region);
  const dateRegionServiceKey = hmac(dateRegionKey, 's3');
  const signingKey = hmac(dateRegionServiceKey, 'aws4_request');
  return hmac(signingKey, policyBase64).toString('hex');
}
// Signs the policy with the credential
Signs the policy with the credential
Signs the policy with the credential
function s3UploadSignature(config, policyBase64, credential) {
  const dateKey = hmac('AWS4' + config.secretKey, dateString());
  const dateRegionKey = hmac(dateKey, config.region);
  const dateRegionServiceKey = hmac(dateRegionKey, 's3');
  const signingKey = hmac(dateRegionServiceKey, 'aws4_request');
  return hmac(signingKey, policyBase64).toString('hex');
}
function s3UploadSignature ( config , policyBase64 , credential ) { const dateKey = hmac ( 'AWS4' + config . secretKey , dateString ( ) ) ; const dateRegionKey = hmac ( dateKey , config . region ) ; const dateRegionServiceKey = hmac ( dateRegionKey , 's3' ) ; const signingKey = hmac ( dateRegionServiceKey , 'aws4_request' ) ; return hmac ( signingKey , policyBase64 ) . toString ( 'hex' ) ; }
Signs the policy with the credential
Signs the policy with the credential