Interface MaterialsProviderInterfaceV2
Direct known implementers
Aws\Crypto\KmsMaterialsProviderV2
,
Aws\Crypto\MaterialsProviderV2
Methods Summary
-
static
isSupportedKeySize ( int $keySize )
Returns if the requested size is supported by AES.
-
getWrapAlgorithmName ( )
Returns the wrap algorithm name for this Provider.
-
decryptCek ( string $encryptedCek, string $materialDescription, array $options )
Takes an encrypted content encryption key (CEK) and material description for use decrypting the key according to the Provider's specifications.
- 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 |
string getWrapAlgorithmName ( )
Returns the wrap algorithm name for this Provider.
Returns
string |
string decryptCek ( string $encryptedCek, string $materialDescription, array $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. |
array | $options | Options for use in decrypting the CEK. |
Returns
string |
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 |
string generateIv ( string $openSslName )
Parameters
string | $openSslName | Cipher OpenSSL name to use for generating an initialization vector. |
Returns
string |