From e56e2cfaf5e990414ca8f93dd4b6137839b30b7c Mon Sep 17 00:00:00 2001 From: jaswsinc Date: Wed, 7 Jan 2015 23:09:04 -0900 Subject: [PATCH] Adding `amazon_s34_sign()`. See: websharks/s2member#440 --- s2member/includes/classes/files-in.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s2member/includes/classes/files-in.inc.php b/s2member/includes/classes/files-in.inc.php index fcca1908..52f4e532 100644 --- a/s2member/includes/classes/files-in.inc.php +++ b/s2member/includes/classes/files-in.inc.php @@ -654,20 +654,20 @@ public static function amazon_s3_sign($string = '') } /** - * Creates an Amazon S3 HMAC-SHA1 signature. + * Creates an Amazon S3 HMAC-SHA256 signature. * * @package s2Member\Files * @since 110524RC * * @param string $string Input string/data, to be signed by this routine. * - * @return string An HMAC-SHA1 signature for Amazon S3. + * @return string An HMAC-SHA256 signature for Amazon S3. */ public static function amazon_s34_sign($string = '') { $s3c['secret_key'] = $GLOBALS['WS_PLUGIN__']['s2member']['o']['amazon_s3_files_secret_key']; - return c_ws_plugin__s2member_utils_strings::hmac_sha1_sign((string)$string, $s3c['secret_key']); + return c_ws_plugin__s2member_utils_strings::hmac_sha256_sign((string)$string, $s3c['secret_key']); } /**