installed plugin Infinite Uploads
version 2.0.8
This commit is contained in:
50
wp-content/plugins/infinite-uploads/vendor/Aws3/Aws/Crypto/MaterialsProviderInterfaceV2.php
vendored
Normal file
50
wp-content/plugins/infinite-uploads/vendor/Aws3/Aws/Crypto/MaterialsProviderInterfaceV2.php
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace UglyRobot\Infinite_Uploads\Aws\Crypto;
|
||||
|
||||
interface MaterialsProviderInterfaceV2
|
||||
{
|
||||
/**
|
||||
* 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);
|
||||
/**
|
||||
* Returns the wrap algorithm name for this Provider.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
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 array $options Options for use in decrypting the CEK.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
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
|
||||
*/
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user