PluginProbe
Media Cloud Sync / 1.4.1
Media Cloud Sync v1.4.1
1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 All 35 releases
media-cloud-sync / includes / sdk / s3 / Aws / Crypto / MaterialsProviderInterface.php

MaterialsProviderInterface.php in Media Cloud Sync 1.4.1, at includes/sdk/s3/Aws/Crypto/MaterialsProviderInterface.php

58 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Dudlewebs\WPMCS\s3\Aws\Crypto;
4
5 interface MaterialsProviderInterface
6 {
7 /**
8 * Returns if the requested size is supported by AES.
9 *
10 * @param int $keySize Size of the requested key in bits.
11 *
12 * @return bool
13 */
14 public static function isSupportedKeySize($keySize);
15 /**
16 * Performs further initialization of the MaterialsProvider based on the
17 * data inside the MetadataEnvelope.
18 *
19 * @param MetadataEnvelope $envelope A storage envelope for encryption
20 * metadata to be read from.
21 *
22 * @internal
23 */
24 public function fromDecryptionEnvelope(MetadataEnvelope $envelope);
25 /**
26 * Returns the wrap algorithm name for this Provider.
27 *
28 * @return string
29 */
30 public function getWrapAlgorithmName();
31 /**
32 * Takes an encrypted content encryption key (CEK) and material description
33 * for use decrypting the key according to the Provider's specifications.
34 *
35 * @param string $encryptedCek Encrypted key to be decrypted by the Provider
36 * for use decrypting other data.
37 * @param string $materialDescription Material Description for use in
38 * encrypting the $cek.
39 *
40 * @return string
41 */
42 public function decryptCek($encryptedCek, $materialDescription);
43 /**
44 * @param string $keySize Length of a cipher key in bits for generating a
45 * random content encryption key (CEK).
46 *
47 * @return string
48 */
49 public function generateCek($keySize);
50 /**
51 * @param string $openSslName Cipher OpenSSL name to use for generating
52 * an initialization vector.
53 *
54 * @return string
55 */
56 public function generateIv($openSslName);
57 }
58