File ManagerCurrent Directory: wp-content/plugins/backwpup/vendor/aws/aws-sdk-php/src/SignatureLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: SignatureTrait.php <?php namespace Aws\Signature; /** * Provides signature calculation for SignatureV4. */ trait SignatureTrait { /** @var array Cache of previously signed values */ private $cache = []; /** @var int Size of the hash cache */ private $cacheSize = 0; private function createScope($shortDate, $region, $service) { return "$shortDate/$region/$service/aws4_request"; } private function getSigningKey($shortDate, $region, $service, $secretKey) { $k = $shortDate . '_' . $region . '_' . $service . '_' . $secretKey; if (!isset($this->cache[$k])) { // Clear the cache when it reaches 50 entries if (++$this->cacheSize > 50) { $this->cache = []; $this->cacheSize = 0; } $dateKey = hash_hmac( 'sha256', $shortDate, "AWS4{$secretKey}", true ); $regionKey = hash_hmac('sha256', $region, $dateKey, true); $serviceKey = hash_hmac('sha256', $service, $regionKey, true); $this->cache[$k] = hash_hmac( 'sha256', 'aws4_request', $serviceKey, true ); } return $this->cache[$k]; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)DirAnonymousSignature.phpFile667.00 B Rename | Delete | EditS3ExpressSignature.phpFile1.51 KB Rename | Delete | EditS3SignatureV4.phpFile3.94 KB Rename | Delete | EditSignatureInterface.phpFile1.39 KB Rename | Delete | EditSignatureProvider.phpFile5.15 KB Rename | Delete | EditSignatureTrait.phpFile1.29 KB Rename | Delete | EditSignatureV4.phpFile19.56 KB Rename | Delete | Edit