Lines Matching refs:vctx
25 static int ossl_aes_gcm_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]);
44 static void ossl_aes_gcm_siv_freectx(void *vctx) in ossl_aes_gcm_siv_freectx() argument
46 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_freectx()
56 static void *ossl_aes_gcm_siv_dupctx(void *vctx) in ossl_aes_gcm_siv_dupctx() argument
58 PROV_AES_GCM_SIV_CTX *in = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_dupctx()
91 static int ossl_aes_gcm_siv_init(void *vctx, const unsigned char *key, size_t keylen, in ossl_aes_gcm_siv_init() argument
95 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_init()
123 static int ossl_aes_gcm_siv_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_aes_gcm_siv_einit() argument
127 return ossl_aes_gcm_siv_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_aes_gcm_siv_einit()
130 static int ossl_aes_gcm_siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_aes_gcm_siv_dinit() argument
134 return ossl_aes_gcm_siv_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_aes_gcm_siv_dinit()
138 static int ossl_aes_gcm_siv_cipher(void *vctx, unsigned char *out, size_t *outl, in ossl_aes_gcm_siv_cipher() argument
141 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_cipher()
166 static int ossl_aes_gcm_siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in ossl_aes_gcm_siv_stream_final() argument
169 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_stream_final()
175 error |= !ctx->hw->cipher(vctx, out, NULL, 0); in ossl_aes_gcm_siv_stream_final()
182 static int ossl_aes_gcm_siv_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_aes_gcm_siv_get_ctx_params() argument
184 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_get_ctx_params()
222 static int ossl_aes_gcm_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in ossl_aes_gcm_siv_set_ctx_params() argument
224 PROV_AES_GCM_SIV_CTX *ctx = (PROV_AES_GCM_SIV_CTX *)vctx; in ossl_aes_gcm_siv_set_ctx_params()