decrypt
Message decryption.
Return
the plaintext.
Parameters
must be one of Algorithm.A128GCM, Algorithm.A192GCM, Algorithm.A256GCM, Algorithm.A128CBC, Algorithm.A192CBC, Algorithm.A256CBC.
the encryption key.
the nonce/IV.
the message to decrypt with the tag at the end (for GCM) or padded (for CBC).
additional authenticated data or null (not used for CBC mode).
Throws
if the given algorithm is not supported.
if decryption fails
Message decryption.
Return
the plaintext.
Parameters
must be one of Algorithm.A128GCM, Algorithm.A192GCM, Algorithm.A256GCM, Algorithm.A128CBC, Algorithm.A192CBC, Algorithm.A256CBC.
the encryption key.
the nonce/IV.
the message to decrypt with the tag at the end (for GCM) or padded (for CBC).
additional authenticated data or null (not used for CBC mode).
Throws
if the given algorithm is not supported.
if decryption fails