Interface MaterialsProviderInterface
Direct known implementers
Aws\Crypto\KmsMaterialsProvider
,
Aws\Crypto\MaterialsProvider
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 )
Takes an encrypted content encryption key (CEK) and material description for use decrypting the key according to the Provider's specifications.
- generateCek ( string $keySize )
- 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 )
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 encrypting the $cek. |
Returns
string |
string generateCek ( string $keySize )
Parameters
string | $keySize | Length of a cipher key in bits for generating a random content encryption key (CEK). |
Returns
string |
string generateIv ( string $openSslName )
Parameters
string | $openSslName | Cipher OpenSSL name to use for generating an initialization vector. |
Returns
string |