[#CRYPTO_gcm128_encrypt] = CRYPTO_gcm128_encrypt :mrdocs: Encrypt plaintext and update the GCM authentication state. == Synopsis Declared in `<openssl/modes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_gcm128_encrypt( xref:GCM128_CONTEXT-04.adoc[GCM128_CONTEXT]* ctx, unsigned char const* in, unsigned char* out, size_t len); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | GCM context ready for encryption (IV and optional AAD set). | *in* | Plaintext bytes of length `len.` | *out* | Ciphertext buffer of length `len` (may equal `in).` | *len* | Number of bytes to encrypt. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#