OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
Crypto
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
AesDecryptingStreamTest.php
4.66 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
AesEncryptingStreamTest.php
5.62 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
AesEncryptionStreamTestTrait.php
2.47 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
AesGcmDecryptingStreamTest.php
4.74 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
AesGcmEncryptingStreamTest.php
7.22 KB
05/19/2025 10:07:24 AM
rw-r--r--
📁
Cipher
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
KmsMaterialsProviderTest.php
1.93 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
KmsMaterialsProviderV2Test.php
7.24 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
MetadataEnvelopeTest.php
1.23 KB
05/19/2025 10:07:24 AM
rw-r--r--
📁
Polyfill
-
05/19/2025 10:07:24 AM
rwxr-xr-x
📄
RandomByteStream.php
935 bytes
05/19/2025 10:07:24 AM
rw-r--r--
📄
UsesCryptoParamsTrait.php
3.66 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
UsesCryptoParamsTraitV2.php
2.69 KB
05/19/2025 10:07:24 AM
rw-r--r--
📄
UsesMetadataEnvelopeTrait.php
2.53 KB
05/19/2025 10:07:24 AM
rw-r--r--
Editing: UsesCryptoParamsTraitV2.php
Close
<?php namespace Aws\Test\Crypto; use Aws\Crypto\KmsMaterialsProvider; use Aws\Crypto\KmsMaterialsProviderV2; use Aws\S3\Crypto\HeadersMetadataStrategy; use Aws\S3\Crypto\InstructionFileMetadataStrategy; trait UsesCryptoParamsTraitV2 { use UsesCryptoParamsTrait; public function getInvalidMaterialsProviders() { return [ [ new \stdClass(), [ 'InvalidArgumentException', 'An instance of MaterialsProviderInterfaceV2' . ' must be passed in the "MaterialsProvider" field.' ] ] ]; } public function getValidMaterialsProviders() { $kms = $this->getKmsClient(); $keyId = '11111111-2222-3333-4444-555555555555'; return [ [ new KmsMaterialsProviderV2($kms, $keyId), false ] ]; } public function getCiphers() { return [ [ 'gcm', null, ], [ 'cbc', [ 'InvalidArgumentException', 'The cipher requested is not supported by the SDK.' ] ], [ 'unsupported', [ 'InvalidArgumentException', 'The cipher requested is not supported by the SDK.' ] ], [ null, [ 'InvalidArgumentException', 'An encryption cipher must be specified in @CipherOptions["Cipher"].' ] ], ]; } public function getKeySizes() { return [ [ 128, [] ], [ 256, [] ], [ 'gcm', [ 'InvalidArgumentException', 'The cipher "KeySize" must be an integer.' ] ], [ 192, [ 'InvalidArgumentException', 'The cipher "KeySize" requested' . ' is not supported by AES (128 or 256).' ] ], [ 512, [ 'InvalidArgumentException', 'The cipher "KeySize" requested' . ' is not supported by AES (128 or 256).' ] ] ]; } }