X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/aws/aws-sdk-php/src/Crypto
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Crypto
/
📁
..
📄
AbstractCryptoClient.php
(3.87 KB)
📄
AbstractCryptoClientV2.php
(3.75 KB)
📄
AesDecryptingStream.php
(3.43 KB)
📄
AesEncryptingStream.php
(3.62 KB)
📄
AesGcmDecryptingStream.php
(2.23 KB)
📄
AesGcmEncryptingStream.php
(2.69 KB)
📄
AesStreamInterface.php
(656 B)
📄
AesStreamInterfaceV2.php
(728 B)
📁
Cipher
📄
DecryptionTrait.php
(5.85 KB)
📄
DecryptionTraitV2.php
(5.95 KB)
📄
EncryptionTrait.php
(6.42 KB)
📄
EncryptionTraitV2.php
(6.32 KB)
📄
KmsMaterialsProvider.php
(3.39 KB)
📄
KmsMaterialsProviderV2.php
(2.53 KB)
📄
MaterialsProvider.php
(3.23 KB)
📄
MaterialsProviderInterface.php
(1.58 KB)
📄
MaterialsProviderV2.php
(2.42 KB)
📄
MetadataEnvelope.php
(1.54 KB)
📄
MetadataStrategyInterface.php
(996 B)
📁
Polyfill
Editing: MetadataEnvelope.php
<?php namespace Aws\Crypto; use Aws\HasDataTrait; use \ArrayAccess; use \IteratorAggregate; use \InvalidArgumentException; use \JsonSerializable; /** * Stores encryption metadata for reading and writing. * * @internal */ class MetadataEnvelope implements ArrayAccess, IteratorAggregate, JsonSerializable { use HasDataTrait; const CONTENT_KEY_V2_HEADER = 'x-amz-key-v2'; const IV_HEADER = 'x-amz-iv'; const MATERIALS_DESCRIPTION_HEADER = 'x-amz-matdesc'; const KEY_WRAP_ALGORITHM_HEADER = 'x-amz-wrap-alg'; const CONTENT_CRYPTO_SCHEME_HEADER = 'x-amz-cek-alg'; const CRYPTO_TAG_LENGTH_HEADER = 'x-amz-tag-len'; const UNENCRYPTED_CONTENT_LENGTH_HEADER = 'x-amz-unencrypted-content-length'; private static $constants = []; public static function getConstantValues() { if (empty(self::$constants)) { $reflection = new \ReflectionClass(static::class); foreach (array_values($reflection->getConstants()) as $constant) { self::$constants[$constant] = true; } } return array_keys(self::$constants); } public function offsetSet($name, $value) { $constants = self::getConstantValues(); if (is_null($name) || !in_array($name, $constants)) { throw new InvalidArgumentException('MetadataEnvelope fields must' . ' must match a predefined offset; use the header constants.'); } $this->data[$name] = $value; } public function jsonSerialize() { return $this->data; } }
Upload File
Create Folder