Decrypt ciphertext and update the GCM authentication state.
Declared in <openssl/modes.h>
int
CRYPTO_gcm128_decrypt(
GCM128_CONTEXT* ctx,
unsigned char const* in,
unsigned char* out,
size_t len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | GCM context ready for decryption (IV and optional AAD set). |
| in | Ciphertext bytes of length len. |
| out | Plaintext buffer of length len (may equal in). |
| len | Number of bytes to decrypt. |