CRYPTO_gcm128_encrypt_ctr32

Encrypt plaintext in GCM using a 32-bit CTR stream acceleration callback.

Synopsis

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);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxGCM context ready for encryption.
inPlaintext bytes of length len.
outCiphertext buffer of length len (may equal in).
lenNumber of bytes to encrypt.
streamMulti-block CTR function for the underlying cipher.