OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
zzXpress
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Crypto
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
AbstractCryptoClient.php
4.11 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AbstractCryptoClientV2.php
4 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesDecryptingStream.php
3.65 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesEncryptingStream.php
3.83 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesGcmDecryptingStream.php
2.81 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesGcmEncryptingStream.php
3.02 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesStreamInterface.php
686 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📄
AesStreamInterfaceV2.php
759 bytes
05/19/2025 10:07:23 AM
rw-r--r--
📁
Cipher
-
05/19/2025 10:07:23 AM
rwxr-xr-x
📄
DecryptionTrait.php
6.13 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
DecryptionTraitV2.php
9.28 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
EncryptionTrait.php
7.1 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
EncryptionTraitV2.php
7.29 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
KmsMaterialsProvider.php
4.01 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
KmsMaterialsProviderV2.php
3.53 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MaterialsProvider.php
3.33 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MaterialsProviderInterface.php
1.87 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MaterialsProviderInterfaceV2.php
1.72 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MaterialsProviderV2.php
2.07 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MetadataEnvelope.php
1.7 KB
05/19/2025 10:07:23 AM
rw-r--r--
📄
MetadataStrategyInterface.php
1 KB
05/19/2025 10:07:23 AM
rw-r--r--
📁
Polyfill
-
05/19/2025 10:07:23 AM
rwxr-xr-x
Editing: AbstractCryptoClientV2.php
Close
<?php namespace Aws\Crypto; use Aws\Crypto\Cipher\CipherMethod; use GuzzleHttp\Psr7\Stream; /** * @internal */ abstract class AbstractCryptoClientV2 { public static $supportedCiphers = ['gcm']; public static $supportedKeyWraps = [ KmsMaterialsProviderV2::WRAP_ALGORITHM_NAME ]; public static $supportedSecurityProfiles = ['V2', 'V2_AND_LEGACY']; public static $legacySecurityProfiles = ['V2_AND_LEGACY']; /** * Returns if the passed cipher name is supported for encryption by the SDK. * * @param string $cipherName The name of a cipher to verify is registered. * * @return bool If the cipher passed is in our supported list. */ public static function isSupportedCipher($cipherName) { return in_array($cipherName, self::$supportedCiphers, true); } /** * Returns an identifier recognizable by `openssl_*` functions, such as * `aes-256-gcm` * * @param string $cipherName Name of the cipher being used for encrypting * or decrypting. * @param int $keySize Size of the encryption key, in bits, that will be * used. * * @return string */ abstract protected function getCipherOpenSslName($cipherName, $keySize); /** * Constructs a CipherMethod for the given name, initialized with the other * data passed for use in encrypting or decrypting. * * @param string $cipherName Name of the cipher to generate for encrypting. * @param string $iv Base Initialization Vector for the cipher. * @param int $keySize Size of the encryption key, in bits, that will be * used. * * @return CipherMethod * * @internal */ abstract protected function buildCipherMethod($cipherName, $iv, $keySize); /** * Performs a reverse lookup to get the openssl_* cipher name from the * AESName passed in from the MetadataEnvelope. * * @param $aesName * * @return string * * @internal */ abstract protected function getCipherFromAesName($aesName); /** * Dependency to provide an interface for building an encryption stream for * data given cipher details, metadata, and materials to do so. * * @param Stream $plaintext Plain-text data to be encrypted using the * materials, algorithm, and data provided. * @param array $options Options for use in encryption. * @param MaterialsProviderV2 $provider A provider to supply and encrypt * materials used in encryption. * @param MetadataEnvelope $envelope A storage envelope for encryption * metadata to be added to. * * @return AesStreamInterface * * @internal */ abstract public function encrypt( Stream $plaintext, array $options, MaterialsProviderV2 $provider, MetadataEnvelope $envelope ); /** * Dependency to provide an interface for building a decryption stream for * cipher text given metadata and materials to do so. * * @param string $cipherText Plain-text data to be decrypted using the * materials, algorithm, and data provided. * @param MaterialsProviderInterface $provider A provider to supply and encrypt * materials used in encryption. * @param MetadataEnvelope $envelope A storage envelope for encryption * metadata to be read from. * @param array $options Options used for decryption. * * @return AesStreamInterface * * @internal */ abstract public function decrypt( $cipherText, MaterialsProviderInterfaceV2 $provider, MetadataEnvelope $envelope, array $options = [] ); }