Lines Matching refs:vctx
36 static int sm4_xts_init(void *vctx, const unsigned char *key, size_t keylen, in sm4_xts_init() argument
40 PROV_SM4_XTS_CTX *xctx = (PROV_SM4_XTS_CTX *)vctx; in sm4_xts_init()
49 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in sm4_xts_init()
63 static int sm4_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in sm4_xts_einit() argument
67 return sm4_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in sm4_xts_einit()
70 static int sm4_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in sm4_xts_dinit() argument
74 return sm4_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in sm4_xts_dinit()
90 static void sm4_xts_freectx(void *vctx) in sm4_xts_freectx() argument
92 PROV_SM4_XTS_CTX *ctx = (PROV_SM4_XTS_CTX *)vctx; in sm4_xts_freectx()
94 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in sm4_xts_freectx()
98 static void *sm4_xts_dupctx(void *vctx) in sm4_xts_dupctx() argument
100 PROV_SM4_XTS_CTX *in = (PROV_SM4_XTS_CTX *)vctx; in sm4_xts_dupctx()
121 static int sm4_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_cipher() argument
124 PROV_SM4_XTS_CTX *ctx = (PROV_SM4_XTS_CTX *)vctx; in sm4_xts_cipher()
164 static int sm4_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_stream_update() argument
168 PROV_SM4_XTS_CTX *ctx = (PROV_SM4_XTS_CTX *)vctx; in sm4_xts_stream_update()
183 static int sm4_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in sm4_xts_stream_final() argument