Lines Matching refs:vctx
58 static void chacha20_freectx(void *vctx) in chacha20_freectx() argument
60 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_freectx()
63 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_freectx()
68 static void *chacha20_dupctx(void *vctx) in chacha20_dupctx() argument
70 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)vctx; in chacha20_dupctx()
95 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_get_ctx_params() argument
124 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in chacha20_set_ctx_params() argument
168 int ossl_chacha20_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_einit() argument
175 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_einit()
177 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_einit()
182 if (ret && !chacha20_set_ctx_params(vctx, params)) in ossl_chacha20_einit()
187 int ossl_chacha20_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_chacha20_dinit() argument
194 ret = ossl_cipher_generic_dinit(vctx, key, keylen, iv, ivlen, NULL); in ossl_chacha20_dinit()
196 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_chacha20_dinit()
201 if (ret && !chacha20_set_ctx_params(vctx, params)) in ossl_chacha20_dinit()