PROV_GCM_CTX
PROV_GCM_CTX base; /* must be first entry in struct */
static int aes_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
static int generic_aes_gcm_cipher_update(PROV_GCM_CTX *ctx, const unsigned char *in,
PROV_GCM_CTX base; /* must be first entry in struct */
static int aria_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
PROV_GCM_CTX base; /* must be first entry in struct */
static int sm4_gcm_initkey(PROV_GCM_CTX *ctx, const unsigned char *key,
static int hw_gcm_cipher_update(PROV_GCM_CTX *ctx, const unsigned char *in,
static int getivgen(PROV_GCM_CTX *ctx, unsigned char *out, size_t olen)
static int setivinv(PROV_GCM_CTX *ctx, unsigned char *in, size_t inl)
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
static int gcm_tls_init(PROV_GCM_CTX *dat, unsigned char *aad, size_t aad_len);
static int gcm_tls_iv_set_fixed(PROV_GCM_CTX *ctx, unsigned char *iv,
static int gcm_tls_cipher(PROV_GCM_CTX *ctx, unsigned char *out, size_t *padlen,
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
static int gcm_cipher_internal(PROV_GCM_CTX *ctx, unsigned char *out,
void ossl_gcm_initctx(void *provctx, PROV_GCM_CTX *ctx, size_t keybits,
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
static int gcm_iv_generate(PROV_GCM_CTX *ctx, int offset)
static int gcm_cipher_internal(PROV_GCM_CTX *ctx, unsigned char *out,
static int gcm_tls_init(PROV_GCM_CTX *dat, unsigned char *aad, size_t aad_len)
static int gcm_tls_iv_set_fixed(PROV_GCM_CTX *ctx, unsigned char *iv,
PROV_GCM_CTX *ctx = (PROV_GCM_CTX *)vctx;
static int gcm_tls_cipher(PROV_GCM_CTX *ctx, unsigned char *out, size_t *padlen,
int ossl_gcm_setiv(PROV_GCM_CTX *ctx, const unsigned char *iv, size_t ivlen)
int ossl_gcm_aad_update(PROV_GCM_CTX *ctx, const unsigned char *aad,
int ossl_gcm_cipher_update(PROV_GCM_CTX *ctx, const unsigned char *in,
int ossl_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag)
int ossl_gcm_one_shot(PROV_GCM_CTX *ctx, unsigned char *aad, size_t aad_len,
void ossl_gcm_initctx(void *provctx, PROV_GCM_CTX *ctx, size_t keybits,
int ossl_gcm_setiv(PROV_GCM_CTX *ctx, const unsigned char *iv, size_t ivlen);
int ossl_gcm_aad_update(PROV_GCM_CTX *ctx, const unsigned char *aad,
int ossl_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag);
int ossl_gcm_one_shot(PROV_GCM_CTX *ctx, unsigned char *aad, size_t aad_len,
int ossl_gcm_cipher_update(PROV_GCM_CTX *ctx, const unsigned char *in,
PROV_CIPHER_FUNC(int, GCM_setkey, (PROV_GCM_CTX *ctx, const unsigned char *key, size_t keylen));
PROV_CIPHER_FUNC(int, GCM_setiv, (PROV_GCM_CTX *dat, const unsigned char *iv, size_t ivlen));
PROV_CIPHER_FUNC(int, GCM_aadupdate, (PROV_GCM_CTX *ctx, const unsigned char *aad, size_t aadlen));
PROV_CIPHER_FUNC(int, GCM_cipherupdate, (PROV_GCM_CTX *ctx, const unsigned char *in, size_t len, unsigned char *out));
PROV_CIPHER_FUNC(int, GCM_cipherfinal, (PROV_GCM_CTX *ctx, unsigned char *tag));
PROV_CIPHER_FUNC(int, GCM_oneshot, (PROV_GCM_CTX *ctx, unsigned char *aad, size_t aad_len, const unsigned char *in, size_t in_len, unsigned char *out, unsigned char *tag, size_t taglen));