Searched refs:generate_random (Results 1 - 4 of 4) sorted by relevance

/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelRand.c85 crypto_generate_random_t generate_random; local
103 generate_random.gr_session = session_p->k_session;
104 generate_random.gr_buf = (caddr_t)pRandomData;
105 generate_random.gr_buflen = ulRandomLen;
108 &generate_random)) < 0) {
115 if (generate_random.gr_return_value != CRYPTO_SUCCESS) {
117 generate_random.gr_return_value);
/illumos-gate/usr/src/uts/common/crypto/io/
H A Dcrypto.c747 if (random_number_ops->generate_random != NULL)
4376 generate_random(dev_t dev, caddr_t arg, int mode, int *rval) function
4378 STRUCT_DECL(crypto_generate_random, generate_random);
4391 STRUCT_INIT(generate_random, mode);
4394 cmn_err(CE_WARN, "generate_random: failed holding minor");
4398 if (copyin(arg, STRUCT_BUF(generate_random),
4399 STRUCT_SIZE(generate_random)) != 0) {
4404 len = STRUCT_FGET(generate_random, gr_buflen);
4406 cmn_err(CE_NOTE, "generate_random: buffer greater than %ld "
4412 session_id = STRUCT_FGET(generate_random, gr_sessio
[all...]
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dspi.h367 int (*generate_random)(crypto_provider_handle_t, crypto_session_id_t, member in struct:crypto_random_number_ops
H A Dimpl.h560 #define CRYPTO_FG_RANDOM 0x80000000 /* generate_random() */
1029 KCF_PROV_RANDOM_OPS(pd)->generate_random) ? \
1030 KCF_PROV_RANDOM_OPS(pd)->generate_random((pd)->pd_prov_handle, \

Completed in 60 milliseconds