GCM_Decrypt
This API decrypts data Using GCM standards.
URL
<http/https>://<host-name>:<Port>/protectappws/services/rest/gcmdecrypt
Input Parameters
| Parameters | Description | 
|---|---|
| username | User name (optional). | 
| password | Password associated with the user (optional). | 
| keyname | Name of the key to be used for decryption. | 
| ciphertext | Encrypted data represented in Hex. | 
| iv | Specify 1 to 16 bytes IV in Hex format. For example 697473617265616c6c79636f6f6c6976. | 
| aad | Optional/blank, the data to be passed to the recipient in plain text, needs to be “authenticated”. | 
| authtaglength | The tag length to ensure the data is not accidentally altered, must be 32 to 128 bits and multiple of 8. | 
| transformation | Transformation to be used. It overrides the standard AES/GCM/NoPadding. | 
| certAlias | Client certificate alias for making SSL connections (optional). | 
| certPass | Password for the provided certificate alias (optional). | 
Sample REST call for cxf
request
    {
    "GCM_Decrypt": {
        "username": "crypto",
        "password": "asdf1234",
        "keyname": "testaesgcm",
        "authtaglength": "72",
        "iv": "31323334353637383132331212",
        "aad": "1115",
        "ciphertext": "2BDC88892AAB9EF9074860028433"
    }
}
response
{
    GCMDecryptResponse: {
plainText: "hello"
    }
}
Sample SOAP Parameters
<prot:GCM_Decrypt>
    <username>crpto</username>
    <password>asdf1234</password>
    <keyname>testaesgcm</keyname>
    <authtaglength>72</authtaglength>
    <iv>31323334353637383132331212</iv>
    <!--Optional:-->
    <aad>122131</aad>
    <ciphertext>A17769B0000714ECA6839172D719C8783BAEC0390438DE3F</ciphertext>
</prot:GCM_Decrypt>
Output
Plaintext data.
    <ns2:GCM_DecryptResponse xmlns:ns2="http://dsws.org/protectappws/">hello</ns2:GCM_DecryptResponse>