Lines Matching refs:vctx
57 void ossl_tdes_freectx(void *vctx) in ossl_tdes_freectx() argument
59 PROV_TDES_CTX *ctx = (PROV_TDES_CTX *)vctx; in ossl_tdes_freectx()
61 ossl_cipher_generic_reset_ctx((PROV_CIPHER_CTX *)vctx); in ossl_tdes_freectx()
78 static int tdes_init(void *vctx, const unsigned char *key, size_t keylen, in tdes_init() argument
82 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in tdes_init()
120 int ossl_tdes_einit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_einit() argument
124 return tdes_init(vctx, key, keylen, iv, ivlen, params, 1); in ossl_tdes_einit()
127 int ossl_tdes_dinit(void *vctx, const unsigned char *key, size_t keylen, in ossl_tdes_dinit() argument
131 return tdes_init(vctx, key, keylen, iv, ivlen, params, 0); in ossl_tdes_dinit()
155 int ossl_tdes_get_ctx_params(void *vctx, OSSL_PARAM params[]) in ossl_tdes_get_ctx_params() argument
157 PROV_CIPHER_CTX *ctx = (PROV_CIPHER_CTX *)vctx; in ossl_tdes_get_ctx_params()
160 if (!ossl_cipher_generic_get_ctx_params(vctx, params)) in ossl_tdes_get_ctx_params()
168 if (!OSSL_FIPS_IND_GET_CTX_PARAM((PROV_TDES_CTX *)vctx, params)) in ossl_tdes_get_ctx_params()
179 int ossl_tdes_set_ctx_params(void *vctx, const OSSL_PARAM params[]) in OSSL_PARAM_uint()
181 if (!OSSL_FIPS_IND_SET_CTX_PARAM((PROV_TDES_CTX *)vctx, in OSSL_PARAM_uint()
185 return ossl_cipher_generic_set_ctx_params(vctx, params); in OSSL_PARAM_uint()