/* Cipher functions */
/*
* Load a cipher from the specified parameters with the specified context.
- * The params "properties", "engine" and "cipher" are used to determine the
+ * The params "propq", "engine" and "cipher" are used to determine the
* implementation used. If a provider cannot be found, it falls back to trying
* non-provider based implementations.
*/
-int ossl_prov_cipher_load_from_params(PROV_CIPHER *pc,
- const OSSL_PARAM params[],
- OSSL_LIB_CTX *ctx);
int ossl_prov_cipher_load(PROV_CIPHER *pc, const OSSL_PARAM *cipher,
const OSSL_PARAM *propq, const OSSL_PARAM *engine,
OSSL_LIB_CTX *ctx);
ERR_clear_last_mark();
return pc->cipher != NULL;
}
-
-int ossl_prov_cipher_load_from_params(PROV_CIPHER *pc,
- const OSSL_PARAM params[],
- OSSL_LIB_CTX *ctx)
-{
- return ossl_prov_cipher_load(pc,
- OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_CIPHER),
- OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_PROPERTIES),
- OSSL_PARAM_locate_const(params, OSSL_ALG_PARAM_ENGINE),
- ctx);
-}
const EVP_CIPHER *ossl_prov_cipher_cipher(const PROV_CIPHER *pc)
{