Lines Matching defs:params
67 static int chacha20_get_params(OSSL_PARAM params[])
69 return ossl_cipher_generic_get_params(params, 0, CHACHA20_FLAGS,
75 static int chacha20_get_ctx_params(void *vctx, OSSL_PARAM params[])
79 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN);
84 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN);
104 static int chacha20_set_ctx_params(void *vctx, const OSSL_PARAM params[])
109 if (params == NULL)
112 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN);
123 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN);
150 const OSSL_PARAM params[])
162 if (ret && !chacha20_set_ctx_params(vctx, params))
169 const OSSL_PARAM params[])
181 if (ret && !chacha20_set_ctx_params(vctx, params))