![]() Performs service operation based on the JSON string provided. If you are using an asymmetric KMS key, we recommend RSAES_OAEP_SHA_256. The default value, SYMMETRIC_DEFAULT, is the algorithm used for symmetric encryption KMS keys. This parameter is required only for asymmetric KMS keys. The algorithm must be compatible with the KMS key that you specify. Specifies the encryption algorithm that KMS will use to encrypt the plaintext message. For details, see Key states of KMS keys in the Key Management Service Developer Guide. The KMS key that you use for this operation must be in a compatible key state. SM2PKE : 1024 bytes (China Regions only).The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose. The standard format for asymmetric key ciphertext does not include configurable fields. KMS cannot store metadata in ciphertext generated with asymmetric keys. You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. The algorithm must be compatible with the KMS key spec. If you specify an asymmetric KMS key, you must also specify the encryption algorithm. For more information, see Encryption Context in the Key Management Service Developer Guide. Otherwise, the request to decrypt fails with an InvalidCiphertextException. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key. You don't need to use the Encrypt operation to encrypt a data key. You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT. Encrypts plaintext of up to 4,096 bytes using a KMS key. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |