Cipher
11 months ago
Polyfill
11 months ago
AbstractCryptoClient.php
11 months ago
AbstractCryptoClientV2.php
11 months ago
AesDecryptingStream.php
11 months ago
AesEncryptingStream.php
11 months ago
AesGcmDecryptingStream.php
11 months ago
AesGcmEncryptingStream.php
11 months ago
AesStreamInterface.php
11 months ago
AesStreamInterfaceV2.php
11 months ago
DecryptionTrait.php
11 months ago
DecryptionTraitV2.php
11 months ago
EncryptionTrait.php
11 months ago
EncryptionTraitV2.php
11 months ago
KmsMaterialsProvider.php
11 months ago
KmsMaterialsProviderV2.php
11 months ago
MaterialsProvider.php
11 months ago
MaterialsProviderInterface.php
11 months ago
MaterialsProviderInterfaceV2.php
11 months ago
MaterialsProviderV2.php
11 months ago
MetadataEnvelope.php
11 months ago
MetadataStrategyInterface.php
11 months ago
MaterialsProviderInterfaceV2.php
54 lines
| 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 | } |
| 54 |