Class EncryptRequest (1.4.2)

Request message for [KeyManagementService.Encrypt][google.cloud.kms.v1 .KeyManagementService.Encrypt]. .. attribute:: name

Required. The resource name of the CryptoKey or CryptoKeyVersion to use for encryption. If a CryptoKey is specified, the server will use its [primary version][google.cloud.kms.v1.CryptoKey.primary].

Optional. Optional data that, if specified, must also be provided during decryption through [DecryptRequest.additional _authenticated_data][google.cloud.kms.v1.DecryptRequest.addit ional_authenticated_data]. The maximum size depends on the key version's [protection_level][google.cloud.kms.v1.CryptoKe yVersionTemplate.protection_level]. For SOFTWARE keys, the AAD must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional_authenticated_data fields must be no larger than 8KiB.