OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
knoblyExpressLandingPage
/
vendor
/
aws
/
aws-sdk-php
/
src
/
Crypto
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/21/2024 10:05:25 AM
rwxr-xr-x
📄
AbstractCryptoClient.php
4.11 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AbstractCryptoClientV2.php
4 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AesDecryptingStream.php
3.65 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AesEncryptingStream.php
3.83 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AesGcmDecryptingStream.php
2.81 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AesGcmEncryptingStream.php
3.02 KB
08/21/2024 10:03:10 AM
rw-r--r--
📄
AesStreamInterface.php
686 bytes
08/21/2024 10:03:11 AM
rw-r--r--
📄
AesStreamInterfaceV2.php
759 bytes
08/21/2024 10:03:11 AM
rw-r--r--
📁
Cipher
-
08/21/2024 10:05:02 AM
rwxr-xr-x
📄
DecryptionTrait.php
6.13 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
DecryptionTraitV2.php
9.28 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
EncryptionTrait.php
7.1 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
EncryptionTraitV2.php
7.29 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
KmsMaterialsProvider.php
4.01 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
KmsMaterialsProviderV2.php
3.53 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MaterialsProvider.php
3.33 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MaterialsProviderInterface.php
1.87 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MaterialsProviderInterfaceV2.php
1.72 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MaterialsProviderV2.php
2.07 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MetadataEnvelope.php
1.7 KB
08/21/2024 10:03:11 AM
rw-r--r--
📄
MetadataStrategyInterface.php
1 KB
08/21/2024 10:03:11 AM
rw-r--r--
📁
Polyfill
-
08/21/2024 10:05:02 AM
rwxr-xr-x
Editing: MaterialsProviderV2.php
Close
<?php namespace Aws\Crypto; abstract class MaterialsProviderV2 implements MaterialsProviderInterfaceV2 { private static $supportedKeySizes = [ 128 => true, 256 => true, ]; /** * Returns if the requested size is supported by AES. * * @param int $keySize Size of the requested key in bits. * * @return bool */ public static function isSupportedKeySize($keySize) { return isset(self::$supportedKeySizes[$keySize]); } /** * Returns the wrap algorithm name for this Provider. * * @return string */ abstract public function getWrapAlgorithmName(); /** * Takes an encrypted content encryption key (CEK) and material description * for use decrypting the key according to the Provider's specifications. * * @param string $encryptedCek Encrypted key to be decrypted by the Provider * for use decrypting other data. * @param string $materialDescription Material Description for use in * decrypting the CEK. * @param string $options Options for use in decrypting the CEK. * * @return string */ abstract public function decryptCek($encryptedCek, $materialDescription, $options); /** * @param string $keySize Length of a cipher key in bits for generating a * random content encryption key (CEK). * @param array $context Context map needed for key encryption * @param array $options Additional options to be used in CEK generation * * @return array */ abstract public function generateCek($keySize, $context, $options); /** * @param string $openSslName Cipher OpenSSL name to use for generating * an initialization vector. * * @return string */ public function generateIv($openSslName) { return openssl_random_pseudo_bytes( openssl_cipher_iv_length($openSslName) ); } }