Debian Codegraph @

lib/3rdParty/composer/aws/aws-sdk-php/src/Crypto/MaterialsProviderInterfaceV2.php

raw symbols SCIP
1 <?php
2 namespace Aws\Crypto;
3
4 interface MaterialsProviderInterfaceV2
5 {
6 /**
7 * Returns if the requested size is supported by AES.
8 *
9 * @param int $keySize Size of the requested key in bits.
10 *
11 * @return bool
12 */
13 public static function isSupportedKeySize($keySize);
14
15 /**
16 * Returns the wrap algorithm name for this Provider.
17 *
18 * @return string
19 */
20 public function getWrapAlgorithmName();
21
22 /**
23 * Takes an encrypted content encryption key (CEK) and material description
24 * for use decrypting the key according to the Provider's specifications.
25 *
26 * @param string $encryptedCek Encrypted key to be decrypted by the Provider
27 * for use decrypting other data.
28 * @param string $materialDescription Material Description for use in
29 * decrypting the CEK.
30 * @param array $options Options for use in decrypting the CEK.
31 *
32 * @return string
33 */
34 public function decryptCek($encryptedCek, $materialDescription, $options);
35
36 /**
37 * @param string $keySize Length of a cipher key in bits for generating a
38 * random content encryption key (CEK).
39 * @param array $context Context map needed for key encryption
40 * @param array $options Additional options to be used in CEK generation
41 *
42 * @return array
43 */
44 public function generateCek($keySize, $context, $options);
45
46 /**
47 * @param string $openSslName Cipher OpenSSL name to use for generating
48 * an initialization vector.
49 *
50 * @return string
51 */
52 public function generateIv($openSslName);
53 }