For symmetric ciphers, mode
(the block cipher mode) is a required field.
For GCM and CCM modes, tag_len
is a required field.
iv
is required for symmetric ciphers and unused for asymmetric ciphers.
If the mode requires one, the request must contain the initialization vector
used when the data was encrypted.
Objects of type Opaque, EC, or HMAC may not be used with this API.
Uniquely identifies a persisted or transient sobject.
Type of security object.
A cryptographic algorithm.
Ciphertext bytes to be decrypted.
Note that when performing format-preserving decryption (i.e., detokenization), the ciphertext should be encoded as UTF-8 bytes.
CipherMode
or RsaEncryptionPadding
, depending on the encryption algorithm.
Specifies the Mask Generating Function (MGF) to use.
A hash algorithm.
The initialization vector to use, required for modes that take IVs (and irrelevant otherwise).
The authenticated data to use. This is only applicable when using authenticated decryption modes (like GCM or CCM).
The authentication tag, relevant for authenticated encryption modes (i.e., GCM or CCM), and otherwise irrelevant.
Whether to returned a masked result when detokenizing (i.e., when decrypting using the FF1/FPE mode). Defaults to false.
This field is only useful if the app has the DECRYPT
permission.
In such situations, when this field is true
, decryption returns
masked output. However, with the MASKDECRYPT
permission, this field
is ignored and detokenization will always return the masked output.
The optional label to use. Currently this field only serves as the rsa_oaep_label when the decryption algorithm is RSA and the mode is Oaep. For other modes, providing this field causes a bad request error.
Success result
The ID of the key used for decryption. Returned for non-transient keys.
Decrypted plaintext bytes.
Note that when performing format-preserving decryption (i.e., detokenization), the plaintext is encoded as UTF-8 bytes.