Lines Matching refs:vctx

81 static void chacha20_poly1305_freectx(void *vctx)  in chacha20_poly1305_freectx()  argument
83 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_freectx()
86 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in chacha20_poly1305_freectx()
99 static int chacha20_poly1305_get_ctx_params(void *vctx, OSSL_PARAM params[]) in chacha20_poly1305_get_ctx_params() argument
101 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_get_ctx_params()
161 static int chacha20_poly1305_set_ctx_params(void *vctx, in chacha20_poly1305_set_ctx_params() argument
166 PROV_CHACHA20_POLY1305_CTX *ctx = (PROV_CHACHA20_POLY1305_CTX *)vctx; in chacha20_poly1305_set_ctx_params()
245 static int chacha20_poly1305_einit(void *vctx, const unsigned char *key, in chacha20_poly1305_einit() argument
252 ret = ossl_cipher_generic_einit(vctx, key, keylen, iv, ivlen, NULL); in chacha20_poly1305_einit()
254 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_einit()
260 if (ret && !chacha20_poly1305_set_ctx_params(vctx, params)) in chacha20_poly1305_einit()
265 static int chacha20_poly1305_dinit(void *vctx, const unsigned char *key, in chacha20_poly1305_dinit() argument
272 ret = ossl_cipher_generic_dinit(vctx, key, keylen, iv, ivlen, NULL); in chacha20_poly1305_dinit()
274 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_dinit()
280 if (ret && !chacha20_poly1305_set_ctx_params(vctx, params)) in chacha20_poly1305_dinit()
285 static int chacha20_poly1305_cipher(void *vctx, unsigned char *out, in chacha20_poly1305_cipher() argument
289 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_cipher()
312 static int chacha20_poly1305_final(void *vctx, unsigned char *out, size_t *outl, in chacha20_poly1305_final() argument
315 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in chacha20_poly1305_final()