/illumos-gate/usr/src/uts/sun4v/io/n2rng/ |
H A D | n2rng_entp_setup.c | 144 rng_entry_t *rng = &n2rng->n_ctl_data->n_rngs[rngid]; in n2rng_logic_test() local 149 * This test runs the RNG with no entropy for in n2rng_logic_test() 151 * LOGIC_TEST_RESULT, but because of the RNG bug, the actual in n2rng_logic_test() 168 &rng->n_preferred_config, rng->n_rng_state); in n2rng_logic_test() 171 "0x%x on rng(%d)", rv, rngid); in n2rng_logic_test() 196 DBG2(n2rng, DHEALTH, "n2rng: logic error on rng(%d), only %d " in n2rng_logic_test() 204 DBG3(n2rng, DHEALTH, "n2rng: rng(%d) logic test passed, " in n2rng_logic_test() 262 rng_entry_t *rng = &n2rng->n_ctl_data->n_rngs[rngid]; in collect_rng_perf() local 275 &rng->n_preferred_config, rng->n_rng_state, in collect_rng_perf() 319 rng_entry_t *rng = &n2rng->n_ctl_data->n_rngs[rngid]; in n2rng_noise_gen_preferred() local [all …]
|
H A D | n2rng.c | 27 * Niagara 2 Random Number Generator (RNG) driver 86 "N2 RNG Driver", /* drv_linkinfo */ 270 * rng systems. in n2rng_attach() 281 cmn_err(CE_WARN, "n2rng: unable to initialize rng " in n2rng_attach() 286 /* Allocate single thread task queue for rng diags and registration */ in n2rng_attach() 295 /* Dispatch task to configure the RNG and register with KCF */ in n2rng_attach() 402 /* Re-configure the RNG hardware and register with KCF */ in n2rng_resume() 999 rng_entry_t *rng; in n2rng_init_ctl() local 1034 * If running with an API version less than 2.0 default to one rng. in n2rng_init_ctl() 1051 /* Allocate space for all rng entries */ in n2rng_init_ctl() [all …]
|
H A D | n2rng_kstat.c | 86 (void) sprintf(buf, "rng%d-state", i); in n2rng_ksinit() 91 "rng%d-cell%d-bias", i, j); in n2rng_ksinit() 96 "rng%d-cell%d-entropy", i, j); in n2rng_ksinit() 159 rng_entry_t *rng; in n2rng_ksupdate() local 163 rng = &n2rng->n_ctl_data->n_rngs[i]; in n2rng_ksupdate() 165 switch (rng->n_rng_state) { in n2rng_ksupdate() 194 rng->n_bias_info[j].bias; in n2rng_ksupdate() 196 rng->n_bias_info[j].entropy; in n2rng_ksupdate()
|
H A D | n2rng_kcf.c | 251 rng_entry_t *rng; in n2rng_failure() local 263 /* Set each rng to failed if running in control domain */ in n2rng_failure() 267 rng = &n2rng->n_ctl_data->n_rngs[rngid]; in n2rng_failure() 268 rng->n_rng_state = CTL_STATE_ERROR; in n2rng_failure() 288 rng_entry_t *rng; in n2rng_unconfigured() local 300 /* Set each rng to unconfigured if running in control domain */ in n2rng_unconfigured() 304 rng = &n2rng->n_ctl_data->n_rngs[rngid]; in n2rng_unconfigured() 305 rng->n_rng_state = CTL_STATE_UNCONFIGURED; in n2rng_unconfigured()
|
H A D | n2rng_provider.c | 45 #include <rng/fips_random.h> 53 * entropy. It needs to be large enough to allow RNG operations to 83 * Since in the new scheme of things, the RNG latency in fips_random() 109 * the RNG stuff. So we make N2RNG_FIPS_INSTANCES, in fips_random() 158 * Initializes one FIPS RNG instance. Must be called once for each
|
/illumos-gate/usr/src/boot/efi/include/Protocol/ |
H A D | Rng.h | 82 RNG algorithm. The list must not change across multiple 86 @retval EFI_SUCCESS The RNG algorithm list was returned successfully. 103 Produces and returns an RNG value using either the default or specified RNG algorithm. 106 @param[in] RNGAlgorithm A pointer to the EFI_RNG_ALGORITHM that identifies the RNG 108 use its default RNG algorithm. 112 resulting RNG value. 114 @retval EFI_SUCCESS The RNG value was returned successfully. 117 @retval EFI_DEVICE_ERROR An RNG value could not be retrieved due to a hardware or 134 /// The Random Number Generator (RNG) protocol provides random bits for use in
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathtemp.c | 92 uint32_t rng; member 152 …tmp.key = (tmp.seed = (tmp.rng = dir ? (uint32_t)strtoul(dir, NiL, 0) : (uint32_t)1) != 0)? (uint3… in pathtemp() 291 if (!tmp.rng || !tmp.seed && (attempt || tmp.pid != getpid())) in pathtemp() 300 …tmp.rng = (uint32_t)tmp.pid * ((uint32_t)time(NiL) ^ (((uint32_t)integralof(&attempt)) >> 3) ^ (((… in pathtemp() 302 tmp.key = (tmp.rng >> 16) | ((tmp.rng & 0xffff) << 16); in pathtemp() 303 tmp.rng ^= tmp.key; in pathtemp() 309 if ((r = (tmp.rng - 1) & 03)) in pathtemp() 310 tmp.rng += 4 - r; in pathtemp() 317 key = tmp.rng * tmp.key + tv.tv_nsec; in pathtemp() 320 tmp.key = tmp.rng * key + tv.tv_nsec; in pathtemp()
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | ebus.h | 91 uint32_t par_phys_hi; /* Parent hi rng addr */ 92 uint32_t par_phys_mid; /* Parent mid rng addr */ 93 uint32_t par_phys_low; /* Parent low rng addr */ 101 uint32_t par_phys_hi; /* Parent hi rng addr */ 102 uint32_t par_phys_low; /* Parent low rng addr */
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | n2rng.h | 62 #define N2RNG_BINDNAME_N2 "SUNW,n2-rng" 63 #define N2RNG_BINDNAME_VF "SUNW,vf-rng" 64 #define N2RNG_BINDNAME_KT "SUNW,kt-rng" 114 * The RNG hardware can send certain internal analog signals to an 123 * There can only be N2_RNG_FIPS_INSTANCES concurrent RNG requsts from 187 #define N2RNG_PROP_NUM_UNITS "rng-#units"
|
/illumos-gate/usr/src/cmd/prtconf/ |
H A D | prt_xxx.c | 186 struct rangespec *rng; in obio_print() local 217 rng = (struct rangespec *)(data + *(di_off_t *)(&dp->par_rng)); in obio_print() 219 obio_printranges(rng + i, ilev); in obio_print() 295 struct rangespec *rng; in sbus_print() local 327 rng = (struct rangespec *)(data + *(di_off_t *)(&dp->par_rng)); in sbus_print() 329 obio_printranges(rng + i, ilev); in sbus_print()
|
/illumos-gate/usr/src/uts/common/sys/crypto/ |
H A D | dca.h | 393 #define CMD_RNGDIRECT 0x41 /* Direct access to the RNG */ 394 #define CMD_RNGSHA1 0x42 /* RNG output processed by SHA1 */ 583 #define DMACTL_RNGMASK 0x01800000U /* RNG mode mask */ 584 #define DMACTL_RNG1 0x00000000U /* 1 RNG bit per cycle */ 585 #define DMACTL_RNG4 0x00800000U /* 1 RNG bit per 4 cycles */ 586 #define DMACTL_RNG8 0x01000000U /* 1 RNG bit per 8 cycles */ 587 #define DMACTL_RNG16 0x01800000U /* 1 RNG bit per 16 cycles */ 686 #define CTX_RNG_LENGTH 64 /* context length for RNG (64 min) */
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | sbbcvar.h | 71 uint32_t pci_phys_hi; /* Parent hi rng addr */ 72 uint32_t pci_phys_mid; /* Parent mid rng addr */ 73 uint32_t pci_phys_low; /* Parent low rng addr */
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | emul64.c | 1563 emul64_overlap(emul64_range_t *rng, diskaddr_t sb, size_t cnt) in emul64_overlap() argument 1566 if (rng->emul64_sb >= sb + cnt) in emul64_overlap() 1568 if (rng->emul64_sb + rng->emul64_blkcnt <= sb) in emul64_overlap() 1570 if ((rng->emul64_sb == sb) && (rng->emul64_blkcnt == cnt)) in emul64_overlap() 1572 if ((sb >= rng->emul64_sb) && in emul64_overlap() 1573 ((sb + cnt) <= (rng->emul64_sb + rng->emul64_blkcnt))) { in emul64_overlap()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sha1.h | 36 * NOTE: n2rng (Niagara2 RNG driver) accesses the state field of
|
/illumos-gate/usr/src/uts/common/io/tpm/ |
H A D | tpm_ddi.h | 112 /* For RNG */
|
H A D | tpm.c | 1546 /* register RNG with kcf */ in tpm_attach() 1548 cmn_err(CE_WARN, "!%s: tpm RNG failed to register with kcf", in tpm_attach() 2063 (void) snprintf(buf, sizeof (buf), "tpmrng TPM RNG"); in tpmrng_ext_info()
|
/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_random.c | 72 #include <rng/fips_random.h> 701 * FIPS 140-2: Continuous RNG test - each generation in rnd_generate_pseudo_bytes() 1044 * RNG provider. 1059 * RNG provider. Mix immediately.
|
/illumos-gate/usr/src/uts/common/crypto/core/ |
H A D | kcf.c | 92 /* initialize the RNG support structures */ in _init()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/ |
H A D | Makefile.com | 101 RNGDIR= $(SRC)/common/crypto/rng
|
/illumos-gate/usr/src/common/crypto/rng/ |
H A D | fips_random.c | 27 #include <rng/fips_random.h>
|
/illumos-gate/usr/src/test/util-tests/tests/pcidb/ |
H A D | pcidbtest.ksh | 127 pcidb_match "1af4:1044:Virtio 1.0 RNG" -p -o vid,did,device pci1af4,1044
|
/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | swrand.c | 57 #include <rng/fips_random.h> 394 * FIPS 140-2: Continuous RNG test - each generation in swrand_get_entropy()
|
H A D | dca_rng.c | 58 dca_error(dca, "unable to allocate request for RNG"); in dca_rng()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSlotToken.c | 333 * for RNG which we remove from the list of mechanisms. in C_GetMechanismList()
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | env.c | 134 #include <Protocol/Rng.h> 658 { .efi_guid_name = "rng source",
|