Lines Matching refs:meth
87 const RAND_METHOD *meth = default_RAND_meth; in ossl_rand_cleanup_int() local
92 if (meth != NULL && meth->cleanup != NULL) in ossl_rand_cleanup_int()
93 meth->cleanup(); in ossl_rand_cleanup_int()
132 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_poll() local
133 int ret = meth == RAND_OpenSSL(); in RAND_poll()
135 if (meth == NULL) in RAND_poll()
150 if (meth->add == NULL in RAND_poll()
151 || meth->add(ossl_rand_pool_buffer(pool), in RAND_poll()
168 static int rand_set_rand_method_internal(const RAND_METHOD *meth, in rand_set_rand_method_internal() argument
180 default_RAND_meth = meth; in rand_set_rand_method_internal()
185 int RAND_set_rand_method(const RAND_METHOD *meth) in RAND_set_rand_method() argument
187 return rand_set_rand_method_internal(meth, NULL); in RAND_set_rand_method()
262 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_seed() local
264 if (meth != NULL && meth->seed != NULL) { in RAND_seed()
265 meth->seed(buf, num); in RAND_seed()
279 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_add() local
281 if (meth != NULL && meth->add != NULL) { in RAND_add()
282 meth->add(buf, num, randomness); in RAND_add()
300 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_pseudo_bytes() local
302 if (meth != NULL && meth->pseudorand != NULL) in RAND_pseudo_bytes()
303 return meth->pseudorand(buf, num); in RAND_pseudo_bytes()
313 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_status() local
315 if (meth != NULL && meth != RAND_OpenSSL()) in RAND_status()
316 return meth->status != NULL ? meth->status() : 0; in RAND_status()
343 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_priv_bytes_ex() local
345 if (meth != NULL && meth != RAND_OpenSSL()) { in RAND_priv_bytes_ex()
346 if (meth->bytes != NULL) in RAND_priv_bytes_ex()
347 return meth->bytes(buf, num); in RAND_priv_bytes_ex()
372 const RAND_METHOD *meth = RAND_get_rand_method(); in RAND_bytes_ex() local
374 if (meth != NULL && meth != RAND_OpenSSL()) { in RAND_bytes_ex()
375 if (meth->bytes != NULL) in RAND_bytes_ex()
376 return meth->bytes(buf, num); in RAND_bytes_ex()