Home
last modified time | relevance | path

Searched refs:RAND_bytes (Results 1 – 25 of 113) sorted by relevance

12345

/freebsd-13.1/crypto/openssl/doc/man3/
H A DRAND_bytes.pod5 RAND_bytes, RAND_priv_bytes, RAND_pseudo_bytes - generate random data
11 int RAND_bytes(unsigned char *buf, int num);
22 RAND_bytes() generates B<num> random bytes using a cryptographically
25 RAND_priv_bytes() has the same semantics as RAND_bytes(). It is intended to
42 to always check the error return value of RAND_bytes() and RAND_priv_bytes() and
53 RAND_bytes() and RAND_priv_bytes()
61 L<RAND_bytes(3)>,
73 RAND_pseudo_bytes() was deprecated in OpenSSL 1.1.0; use RAND_bytes() instead.
H A DRAND_set_rand_method.pod45 RAND_seed(), RAND_bytes(), internal RAND cleanup, RAND_add(), RAND_pseudo_rand()
57 L<RAND_bytes(3)>,
H A DBN_rand.pod49 same difference between L<RAND_bytes(3)> and L<RAND_priv_bytes(3)>.
66 L<RAND_bytes(3)>,
H A DRAND_add.pod39 seeded. If not, functions such as L<RAND_bytes(3)> will fail.
85 L<RAND_bytes(3)>,
H A DDSA_generate_key.pod29 L<DSA_new(3)>, L<ERR_get_error(3)>, L<RAND_bytes(3)>,
H A DSSL_get_client_random.pod59 in place of RAND_bytes() would be grossly foolish.
90 L<RAND_bytes(3)>,
H A DDSA_do_sign.pod39 L<DSA_new(3)>, L<ERR_get_error(3)>, L<RAND_bytes(3)>,
/freebsd-13.1/contrib/ntp/sntp/m4/
H A Dntp_crypto_rand.m424 dnl - Look for RAND_poll and RAND_bytes
43 AC_CHECK_FUNCS([RAND_bytes RAND_poll])
/freebsd-13.1/crypto/openssl/doc/man1/
H A Drand.pod24 The random bytes are generated using the L<RAND_bytes(3)> function,
28 For more details, see L<RAND_bytes(3)>, L<RAND(7)>, and L<RAND_DRBG(7)>.
82 L<RAND_bytes(3)>,
/freebsd-13.1/crypto/openssl/crypto/rsa/
H A Drsa_ssl.c37 if (RAND_bytes(p, j) <= 0) in RSA_padding_add_SSLv23()
42 if (RAND_bytes(p, 1) <= 0) in RSA_padding_add_SSLv23()
H A Drsa_pk1.c137 if (RAND_bytes(p, j) <= 0) in RSA_padding_add_PKCS1_type_2()
142 if (RAND_bytes(p, 1) <= 0) in RSA_padding_add_PKCS1_type_2()
/freebsd-13.1/crypto/openssl/doc/man7/
H A DRAND.pod28 just use L<RAND_bytes(3)> to obtain random data.
30 return value of L<RAND_bytes(3)> and do not take randomness for granted.
71 L<RAND_bytes(3)>,
H A DRAND_DRBG.pod29 The usual way to obtain random bytes is to use L<RAND_bytes(3)> or
76 By default, the functions L<RAND_bytes(3)> and L<RAND_priv_bytes(3)> use
88 This instance is used per default by L<RAND_bytes(3)>.
137 RAND_bytes() RAND_priv_bytes()
146 The usual way to obtain random bytes is to call RAND_bytes(...) or
208 previous OpenSSL versions to call RAND_add() before calling RAND_bytes().
/freebsd-13.1/crypto/heimdal/lib/krb5/
H A Dgenerate_seq_number.c41 if (RAND_bytes((void *)seqno, sizeof(*seqno)) <= 0) in krb5_generate_seq_number()
H A Dcrypto-rand.c109 if (RAND_bytes(buf, len) <= 0) in krb5_generate_random_block()
/freebsd-13.1/crypto/openssl/crypto/asn1/
H A Dp5_pbev2.c70 else if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) <= 0)
173 else if (RAND_bytes(osalt->data, saltlen) <= 0) in PKCS5_pbkdf2_set()
H A Dp5_scrypt.c85 else if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) <= 0) in PKCS5_pbe2_set_scrypt()
165 if (salt == NULL && RAND_bytes(sparam->salt->data, saltlen) <= 0) in pkcs5_scrypt_set()
H A Dp5_pbe.c55 else if (RAND_bytes(sstr, saltlen) <= 0)
/freebsd-13.1/contrib/ntp/libntp/
H A Dntp_crypto_rnd.c97 rc = RAND_bytes(buf, size2int_chk(nbytes)); in ntp_crypto_random_buf()
/freebsd-13.1/crypto/openssl/crypto/bn/
H A Dbn_rand.c46 b = flag == NORMAL ? RAND_bytes(buf, bytes) : RAND_priv_bytes(buf, bytes); in bnrand()
58 if (RAND_bytes(&c, 1) <= 0) in bnrand()
/freebsd-13.1/crypto/openssl/include/openssl/
H A Drand.h42 int RAND_bytes(unsigned char *buf, int num);
/freebsd-13.1/crypto/openssl/crypto/evp/
H A Dp_seal.c37 && RAND_bytes(iv, EVP_CIPHER_CTX_iv_length(ctx)) <= 0) in EVP_SealInit()
/freebsd-13.1/crypto/openssh/
H A Dentropy.c69 if (RAND_bytes(buf, sizeof(buf)) <= 0) { in rexec_send_rng_seed()
/freebsd-13.1/crypto/openssl/crypto/cms/
H A Dcms_pwri.c92 if (RAND_bytes(iv, ivlen) <= 0) in CMS_add0_recipient_password()
261 && RAND_bytes(out + 4 + inlen, olen - 4 - inlen) <= 0) in kek_wrap_key()
/freebsd-13.1/crypto/openssl/apps/
H A Drand.c107 r = RAND_bytes(buf, chunk); in rand_main()

12345