/home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src/S3/Crypto
NameSizeModeActions
CryptoParamsTrait.php25680644editdlrm
CryptoParamsTraitV2.php5050644editdlrm
HeadersMetadataStrategy.php16230644editdlrm
InstructionFileMetadataStrategy.php29650644editdlrm
S3EncryptionClient.php137310644editdlrm
S3EncryptionClientV2.php183500644editdlrm
S3EncryptionMultipartUploader.php68010644editdlrm
S3EncryptionMultipartUploaderV2.php74310644editdlrm
UserAgentTrait.php9680644editdlrm
Edit: /home/techb158/immovalet.com/vendor/aws/aws-sdk-php/src/S3/Crypto/S3EncryptionMultipartUploader.php (6801B)
appendUserAgent($client, 'feat/s3-encrypt/' . self::CRYPTO_VERSION); $this->client = $client; $config['params'] = []; if (!empty($config['bucket'])) { $config['params']['Bucket'] = $config['bucket']; } if (!empty($config['key'])) { $config['params']['Key'] = $config['key']; } $this->provider = $this->getMaterialsProvider($config); unset($config['@MaterialsProvider']); $this->instructionFileSuffix = $this->getInstructionFileSuffix($config); unset($config['@InstructionFileSuffix']); $this->strategy = $this->getMetadataStrategy( $config, $this->instructionFileSuffix ); if ($this->strategy === null) { $this->strategy = self::getDefaultStrategy(); } unset($config['@MetadataStrategy']); $config['prepare_data_source'] = $this->getEncryptingDataPreparer(); parent::__construct($client, $source, $config); } private static function getDefaultStrategy() { return new HeadersMetadataStrategy(); } private function getEncryptingDataPreparer() { return function() { // Defer encryption work until promise is executed $envelope = new MetadataEnvelope(); list($this->source, $params) = Promise\promise_for($this->encrypt( $this->source, $this->config['@cipheroptions'] ?: [], $this->provider, $envelope ))->then( function ($bodyStream) use ($envelope) { $params = $this->strategy->save( $envelope, $this->config['params'] ); return [$bodyStream, $params]; } )->wait(); $this->source->rewind(); $this->config['params'] = $params; }; } }