Lines Matching refs:vctx
49 static void aes_siv_freectx(void *vctx) in aes_siv_freectx() argument
51 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_freectx()
59 static void *siv_dupctx(void *vctx) in siv_dupctx() argument
61 PROV_AES_SIV_CTX *in = (PROV_AES_SIV_CTX *)vctx; in siv_dupctx()
77 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() argument
81 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_init()
99 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() argument
103 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit()
106 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() argument
110 return siv_init(vctx, key, keylen, iv, ivlen, params, 0); in siv_dinit()
113 static int siv_cipher(void *vctx, unsigned char *out, size_t *outl, in siv_cipher() argument
116 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_cipher()
143 static int siv_stream_final(void *vctx, unsigned char *out, size_t *outl, in siv_stream_final() argument
146 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in siv_stream_final()
151 if (!ctx->hw->cipher(vctx, out, NULL, 0)) in siv_stream_final()
159 static int aes_siv_get_ctx_params(void *vctx, OSSL_PARAM params[]) in aes_siv_get_ctx_params() argument
161 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_get_ctx_params()
199 static int aes_siv_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_siv_set_ctx_params() argument
201 PROV_AES_SIV_CTX *ctx = (PROV_AES_SIV_CTX *)vctx; in aes_siv_set_ctx_params()