Class MaterialsProviderV2
- Aws\Crypto\MaterialsProviderV2 implements Aws\Crypto\MaterialsProviderInterfaceV2
- Abstract class
- Namespace: Aws\Crypto
- Located at Crypto/MaterialsProviderV2.php
Direct known subclasses
Methods Summary
-
static
isSupportedKeySize ( int $keySize )
Returns if the requested size is supported by AES.
-
abstract
getWrapAlgorithmName ( )
Returns the wrap algorithm name for this Provider.
-
abstract
decryptCek ( string $encryptedCek, string $materialDescription, string $options )
Takes an encrypted content encryption key (CEK) and material description for use decrypting the key according to the Provider's specifications.
- abstract generateCek ( string $keySize, array $context, array $options )
- generateIv ( string $openSslName )
Methods Details
static boolean isSupportedKeySize ( integer $keySize )
Returns if the requested size is supported by AES.
Parameters
integer | $keySize | Size of the requested key in bits. |
Returns
boolean |
Implementation of
abstract string getWrapAlgorithmName ( )
Returns the wrap algorithm name for this Provider.
Returns
string |
Implementation of
abstract string decryptCek ( string $encryptedCek, string $materialDescription, string $options )
Takes an encrypted content encryption key (CEK) and material description for use decrypting the key according to the Provider's specifications.
Parameters
string | $encryptedCek | Encrypted key to be decrypted by the Provider for use decrypting other data. |
string | $materialDescription | Material Description for use in decrypting the CEK. |
string | $options | Options for use in decrypting the CEK. |
Returns
string |
Implementation of
abstract array generateCek ( string $keySize, array $context, array $options )
Parameters
string | $keySize | Length of a cipher key in bits for generating a random content encryption key (CEK). |
array | $context | Context map needed for key encryption |
array | $options | Additional options to be used in CEK generation |
Returns
array |
Implementation of
string generateIv ( string $openSslName )
Parameters
string | $openSslName | Cipher OpenSSL name to use for generating an initialization vector. |
Returns
string |