Lines Matching refs:meth
50 void EC_KEY_set_default_method(const EC_KEY_METHOD *meth) in EC_KEY_set_default_method() argument
52 if (meth == NULL) in EC_KEY_set_default_method()
55 default_ec_key_meth = meth; in EC_KEY_set_default_method()
60 return key->meth; in EC_KEY_get_method()
63 int EC_KEY_set_method(EC_KEY *key, const EC_KEY_METHOD *meth) in EC_KEY_set_method() argument
65 void (*finish)(EC_KEY *key) = key->meth->finish; in EC_KEY_set_method()
75 key->meth = meth; in EC_KEY_set_method()
76 if (meth->init != NULL) in EC_KEY_set_method()
77 return meth->init(key); in EC_KEY_set_method()
101 ret->meth = EC_KEY_get_default_method(); in ossl_ec_key_new_method_int()
112 ret->meth = ENGINE_get_EC(ret->engine); in ossl_ec_key_new_method_int()
113 if (ret->meth == NULL) { in ossl_ec_key_new_method_int()
131 if (ret->meth->init != NULL && ret->meth->init(ret) == 0) { in ossl_ec_key_new_method_int()
156 if (eckey->meth->compute_key == NULL) { in ECDH_compute_key()
164 if (!eckey->meth->compute_key(&sec, &seclen, pub_key, eckey)) in ECDH_compute_key()
177 EC_KEY_METHOD *EC_KEY_METHOD_new(const EC_KEY_METHOD *meth) in EC_KEY_METHOD_new() argument
179 EC_KEY_METHOD *ret = OPENSSL_zalloc(sizeof(*meth)); in EC_KEY_METHOD_new()
183 if (meth != NULL) in EC_KEY_METHOD_new()
184 *ret = *meth; in EC_KEY_METHOD_new()
189 void EC_KEY_METHOD_free(EC_KEY_METHOD *meth) in EC_KEY_METHOD_free() argument
191 if (meth->flags & EC_KEY_METHOD_DYNAMIC) in EC_KEY_METHOD_free()
192 OPENSSL_free(meth); in EC_KEY_METHOD_free()
195 void EC_KEY_METHOD_set_init(EC_KEY_METHOD *meth, in EC_KEY_METHOD_set_init() argument
205 meth->init = init; in EC_KEY_METHOD_set_init()
206 meth->finish = finish; in EC_KEY_METHOD_set_init()
207 meth->copy = copy; in EC_KEY_METHOD_set_init()
208 meth->set_group = set_group; in EC_KEY_METHOD_set_init()
209 meth->set_private = set_private; in EC_KEY_METHOD_set_init()
210 meth->set_public = set_public; in EC_KEY_METHOD_set_init()
213 void EC_KEY_METHOD_set_keygen(EC_KEY_METHOD *meth, in EC_KEY_METHOD_set_keygen() argument
216 meth->keygen = keygen; in EC_KEY_METHOD_set_keygen()
219 void EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, in EC_KEY_METHOD_set_compute_key() argument
225 meth->compute_key = ckey; in EC_KEY_METHOD_set_compute_key()
228 void EC_KEY_METHOD_set_sign(EC_KEY_METHOD *meth, in EC_KEY_METHOD_set_sign() argument
242 meth->sign = sign; in EC_KEY_METHOD_set_sign()
243 meth->sign_setup = sign_setup; in EC_KEY_METHOD_set_sign()
244 meth->sign_sig = sign_sig; in EC_KEY_METHOD_set_sign()
247 void EC_KEY_METHOD_set_verify(EC_KEY_METHOD *meth, in EC_KEY_METHOD_set_verify() argument
257 meth->verify = verify; in EC_KEY_METHOD_set_verify()
258 meth->verify_sig = verify_sig; in EC_KEY_METHOD_set_verify()
261 void EC_KEY_METHOD_get_init(const EC_KEY_METHOD *meth, in EC_KEY_METHOD_get_init() argument
273 *pinit = meth->init; in EC_KEY_METHOD_get_init()
275 *pfinish = meth->finish; in EC_KEY_METHOD_get_init()
277 *pcopy = meth->copy; in EC_KEY_METHOD_get_init()
279 *pset_group = meth->set_group; in EC_KEY_METHOD_get_init()
281 *pset_private = meth->set_private; in EC_KEY_METHOD_get_init()
283 *pset_public = meth->set_public; in EC_KEY_METHOD_get_init()
286 void EC_KEY_METHOD_get_keygen(const EC_KEY_METHOD *meth, in EC_KEY_METHOD_get_keygen() argument
290 *pkeygen = meth->keygen; in EC_KEY_METHOD_get_keygen()
293 void EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth, in EC_KEY_METHOD_get_compute_key() argument
300 *pck = meth->compute_key; in EC_KEY_METHOD_get_compute_key()
303 void EC_KEY_METHOD_get_sign(const EC_KEY_METHOD *meth, in EC_KEY_METHOD_get_sign() argument
318 *psign = meth->sign; in EC_KEY_METHOD_get_sign()
320 *psign_setup = meth->sign_setup; in EC_KEY_METHOD_get_sign()
322 *psign_sig = meth->sign_sig; in EC_KEY_METHOD_get_sign()
325 void EC_KEY_METHOD_get_verify(const EC_KEY_METHOD *meth, in EC_KEY_METHOD_get_verify() argument
336 *pverify = meth->verify; in EC_KEY_METHOD_get_verify()
338 *pverify_sig = meth->verify_sig; in EC_KEY_METHOD_get_verify()