Encrypt plaintext in GCM using a 32-bit CTR stream acceleration callback.
Declared in <openssl/modes.h>
int
CRYPTO_gcm128_encrypt_ctr32(
GCM128_CONTEXT* ctx,
unsigned char const* in,
unsigned char* out,
size_t len,
ctr128_f stream);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | GCM context ready for encryption. |
| in | Plaintext bytes of length len. |
| out | Ciphertext buffer of length len (may equal in). |
| len | Number of bytes to encrypt. |
| stream | Multi-block CTR function for the underlying cipher. |