AES_GCM_DECRYPT (value, init_vector, key [, keysize])
Argument
| Required/
Optional
| Description
|
---|---|---|
value
| Required
| Binary data type. The ciphertext value to be decrypted into plaintext.
|
init_vector
| Required
| String data type. Use the same initialization vector (IV) to decrypt a value that you used to encrypt the ciphertext. The IV must be 96-bit and randomly generated.
|
key
| Required
| String data type of size 128, 192, or 256 bits. Use the same key to decrypt a value that you used to encrypt it.
|
keysize
| The size of the key argument, in bits, determines whether the keysize argument is optional or required.
| Integer data type. Size of the key provided.
Possible values:128, 192, 256 bits. Default value is 128 bits.
|
AES_GCM_DECRYPT(SSN_ENCRYPT, '012345678901', '1234567890123456', 128)
AES_GCM_DECRYPT(SSN_ENCRYPT, '123456789012', '12345678901234567', 192)