Lines Matching refs:vctx
72 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_init() argument
76 PROV_AES_XTS_CTX *xctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_init()
85 if (!ossl_cipher_generic_initiv(vctx, iv, ivlen)) in aes_xts_init()
101 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() argument
106 if (s390x_aes_xts_einit(vctx, key, keylen, iv, ivlen, params) == 1) in aes_xts_einit()
109 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit()
112 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() argument
117 if (s390x_aes_xts_dinit(vctx, key, keylen, iv, ivlen, params) == 1) in aes_xts_dinit()
120 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_xts_dinit()
140 static void aes_xts_freectx(void *vctx) in aes_xts_freectx() argument
142 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_freectx()
144 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in aes_xts_freectx()
148 static void *aes_xts_dupctx(void *vctx) in aes_xts_dupctx() argument
150 PROV_AES_XTS_CTX *in = (PROV_AES_XTS_CTX *)vctx; in aes_xts_dupctx()
158 return s390x_aes_xts_dupctx(vctx); in aes_xts_dupctx()
176 static int aes_xts_cipher(void *vctx, unsigned char *out, size_t *outl, in aes_xts_cipher() argument
179 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_cipher()
183 return s390x_aes_xts_cipher(vctx, out, outl, outsize, in, inl); in aes_xts_cipher()
216 static int aes_xts_stream_update(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_update() argument
220 PROV_AES_XTS_CTX *ctx = (PROV_AES_XTS_CTX *)vctx; in aes_xts_stream_update()
235 static int aes_xts_stream_final(void *vctx, unsigned char *out, size_t *outl, in aes_xts_stream_final() argument
255 static int aes_xts_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in aes_xts_set_ctx_params() argument
257 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in aes_xts_set_ctx_params()