Home
last modified time | relevance | path

Searched refs:rand (Results 1 – 25 of 57) sorted by relevance

123

/openssl/crypto/evp/
H A Devp_rand.c58 if (rand != NULL) in evp_rand_up_ref()
68 if (rand == NULL) in evp_rand_free()
81 EVP_RAND *rand = OPENSSL_zalloc(sizeof(*rand)); in evp_rand_new() local
83 if (rand == NULL) in evp_rand_new()
90 return rand; in evp_rand_new()
97 return rand->meth->enable_locking(rand->algctx); in EVP_RAND_enable_locking()
106 return rand->meth->lock(rand->algctx); in evp_rand_lock()
114 rand->meth->unlock(rand->algctx); in evp_rand_unlock()
282 return rand; in evp_rand_from_algorithm()
320 return rand != NULL && evp_is_a(rand->prov, rand->name_id, NULL, name); in EVP_RAND_is_a()
[all …]
/openssl/crypto/rand/
H A Drand_lib.c311 EVP_RAND_CTX *rand; in RAND_status() local
341 EVP_RAND_CTX *rand; in RAND_priv_bytes_ex() local
354 if (rand != NULL) in RAND_priv_bytes_ex()
370 EVP_RAND_CTX *rand; in RAND_bytes_ex() local
383 if (rand != NULL) in RAND_bytes_ex()
523 EVP_RAND_CTX *rand; in rand_delete_thread_state() local
540 EVP_RAND *rand; in rand_new_seed() local
659 EVP_RAND *rand; in rand_new_drbg() local
715 EVP_RAND *rand; in rand_new_crngt() local
832 return rand; in RAND_get0_public()
[all …]
H A Drand_uniform.c28 uint32_t f2, rand; /* extra fractional part and random material */ in ossl_rand_uniform_uint32() local
41 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32()
56 prod = (uint64_t)upper * rand; in ossl_rand_uniform_uint32()
77 if (RAND_bytes_ex(ctx, (unsigned char *)&rand, sizeof(rand), 0) <= 0) { in ossl_rand_uniform_uint32()
81 prod = (uint64_t)upper * rand; in ossl_rand_uniform_uint32()
/openssl/doc/man7/
H A DEVP_RAND-SEED-SRC.pod13 building using the B<--with-rand-seed=> option. By default, operating system
41 EVP_RAND *rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
42 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
46 EVP_RAND *rand;
53 rand = EVP_RAND_fetch(NULL, "SEED-SRC", NULL);
54 seed = EVP_RAND_CTX_new(rand, NULL);
56 EVP_RAND_free(rand);
59 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
60 rctx = EVP_RAND_CTX_new(rand, seed);
61 EVP_RAND_free(rand);
H A DEVP_RAND-JITTER.pod44 EVP_RAND *rand = EVP_RAND_fetch(NULL, "JITTER", NULL);
45 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
60 EVP_RAND *rand;
67 rand = EVP_RAND_fetch(NULL, "JITTER", NULL);
68 seed = EVP_RAND_CTX_new(rand, NULL);
70 EVP_RAND_free(rand);
73 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
74 rctx = EVP_RAND_CTX_new(rand, seed);
75 EVP_RAND_free(rand);
H A DEVP_RAND-CTR-DRBG.pod65 EVP_RAND *rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
66 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
70 EVP_RAND *rand;
76 rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL);
77 rctx = EVP_RAND_CTX_new(rand, NULL);
78 EVP_RAND_free(rand);
H A DEVP_RAND-HASH-DRBG.pod57 These parameters work as described in L<provider-rand(7)/PARAMETERS>.
83 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL);
84 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
88 EVP_RAND *rand;
94 rand = EVP_RAND_fetch(NULL, "HASH-DRBG", NULL);
95 rctx = EVP_RAND_CTX_new(rand, NULL);
96 EVP_RAND_free(rand);
H A DEVP_RAND-HMAC-DRBG.pod59 These parameters work as described in L<provider-rand(7)/PARAMETERS>.
84 EVP_RAND *rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL);
85 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
89 EVP_RAND *rand;
95 rand = EVP_RAND_fetch(NULL, "HMAC-DRBG", NULL);
96 rctx = EVP_RAND_CTX_new(rand, NULL);
97 EVP_RAND_free(rand);
H A DEVP_RAND-TEST-RAND.pod78 EVP_RAND *rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL);
79 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, NULL);
83 EVP_RAND *rand;
91 rand = EVP_RAND_fetch(NULL, "TEST-RAND", NULL);
92 rctx = EVP_RAND_CTX_new(rand, NULL);
93 EVP_RAND_free(rand);
H A DEVP_RAND-CRNG-TEST.pod41 This parameter works as described in L<provider-rand(7)/PARAMETERS>.
52 EVP_RAND *rand = EVP_RAND_fetch(NULL, "CRNG-TEST", NULL);
53 EVP_RAND_CTX *rctx = EVP_RAND_CTX_new(rand, parent);
H A Dprovider-rand.pod5 provider-rand - The random number generation library E<lt>-E<gt> provider
77 structure for holding context information during a rand operation.
78 A pointer to this context will be passed back in a number of the other rand
82 The parameter I<parent> specifies another rand instance to be used for
88 OSSL_FUNC_rand_freectx() is passed a pointer to the provider side rand context in
160 OSSL_FUNC_rand_set_ctx_params() sets rand parameters associated with the given
161 provider side rand context I<ctx> to I<params>.
166 associated with the given provider side rand context I<ctx> and stores them
289 provider side rand context, or NULL on failure.
304 The RAND life-cycle is described in L<life_cycle-rand(7)>. Providers should
[all …]
H A Dlife_cycle-rand.pod5 life_cycle-rand - The RAND algorithm life-cycle
79 =for html <img src="img/rand.png">
178 L<provider-rand(7)>, L<EVP_RAND(3)>.
/openssl/providers/fips/
H A Dself_test_kats.c262 EVP_RAND *rand; in self_test_drbg() local
273 if (rand == NULL) in self_test_drbg()
277 EVP_RAND_free(rand); in self_test_drbg()
287 if (rand == NULL) in self_test_drbg()
291 EVP_RAND_free(rand); in self_test_drbg()
660 EVP_RAND *rand; in set_kat_drbg() local
672 if (rand == NULL) in set_kat_drbg()
676 EVP_RAND_free(rand); in set_kat_drbg()
686 if (rand == NULL) in set_kat_drbg()
754 EVP_RAND *rand; in setup_main_random() local
[all …]
/openssl/doc/man3/
H A DEVP_RAND.pod29 int EVP_RAND_up_ref(EVP_RAND *rand);
30 void EVP_RAND_free(EVP_RAND *rand);
35 int EVP_RAND_get_params(EVP_RAND *rand, OSSL_PARAM params[]);
43 const char *EVP_RAND_get0_name(const EVP_RAND *rand);
45 int EVP_RAND_is_a(const EVP_RAND *rand, const char *name);
50 int EVP_RAND_names_do_all(const EVP_RAND *rand,
168 I<rand>.
236 of the given I<rand>.
250 the rand implementation.
409 L<provider-rand(7)>,
[all …]
H A DRAND_get0_primary.pod14 #include <openssl/rand.h>
19 int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
20 int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
/openssl/
H A DNOTES-NONSTOP.md11 Specify the `--with-rand-seed=rdcpu` option to the `./Configure` script.
15 specify the `--with-rand-seed=egd` option to the `./Configure` script.
136 ./Configure nonstop-nsx_64 --with-rand-seed=rdcpu
229 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
232 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
235 --with-rand-seed=rdcpu ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
242 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
245 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
248 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
251 --with-rand-seed=egd ${CIPHENABLES} ${DBGFLAG} ${SYSTEMLIBS}
[all …]
/openssl/doc/internal/man3/
H A Dossl_random_add_conf_module.pod9 #include "crypto/rand.h"
27 L<OSSL_PROVIDER(3)>, L<ossl_provider_new(3)>, L<provider-rand(7)>
H A Devp_md_get_number.pod23 int evp_rand_get_number(const EVP_RAND *rand);
74 Returns the internal dynamic number assigned to I<rand>.
/openssl/include/openssl/
H A Drand.h85 int RAND_set0_public(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
86 int RAND_set0_private(OSSL_LIB_CTX *ctx, EVP_RAND_CTX *rand);
/openssl/doc/man1/
H A Dopenssl-rand.pod.in6 openssl-rand - generate pseudo-random bytes
10 B<openssl rand>
H A Dopenssl-cmds.pod.in40 rand,
121 L<openssl-rand(1)>,
/openssl/doc/life-cycles/
H A DMakefile1 GRAPHS=cipher.dot digest.dot kdf.dot mac.dot pkey.dot rand.dot
H A Drand.dot1 strict digraph rand {
/openssl/apps/
H A Dlist.c57 IS_FETCHABLE(rand, EVP_RAND) in IS_FETCHABLE()
385 static void collect_rands(EVP_RAND *rand, void *stack) in collect_rands() argument
389 if (is_rand_fetchable(rand) in collect_rands()
390 && sk_EVP_RAND_push(rand_stack, rand) > 0) in collect_rands()
391 EVP_RAND_up_ref(rand); in collect_rands()
434 EVP_RAND *rand; in display_random() local
443 rand = EVP_RAND_CTX_get0_rand(drbg); in display_random()
445 BIO_printf(bio_out, " %s", EVP_RAND_get0_name(rand)); in display_random()
447 OSSL_PROVIDER_get0_name(EVP_RAND_get0_provider(rand))); in display_random()
465 gettables = EVP_RAND_gettable_ctx_params(rand); in display_random()
/openssl/test/
H A Ddrbgtest.c785 EVP_RAND *rand = NULL; in new_drbg() local
792 if (!TEST_ptr(rand = EVP_RAND_fetch(NULL, "CTR-DRBG", NULL)) in new_drbg()
793 || !TEST_ptr(drbg = EVP_RAND_CTX_new(rand, parent)) in new_drbg()
798 EVP_RAND_free(rand); in new_drbg()

Completed in 34 milliseconds

123