/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_vp8.c | 52 const struct v4l2_vp8_entropy *entropy = &hdr->entropy; in hantro_vp8_prob_update() local 69 dst[0] = entropy->y_mode_probs[0]; in hantro_vp8_prob_update() 70 dst[1] = entropy->y_mode_probs[1]; in hantro_vp8_prob_update() 71 dst[2] = entropy->y_mode_probs[2]; in hantro_vp8_prob_update() 72 dst[3] = entropy->y_mode_probs[3]; in hantro_vp8_prob_update() 73 dst[4] = entropy->uv_mode_probs[0]; in hantro_vp8_prob_update() 74 dst[5] = entropy->uv_mode_probs[1]; in hantro_vp8_prob_update() 75 dst[6] = entropy->uv_mode_probs[2]; in hantro_vp8_prob_update() 80 dst[0] = entropy->mv_probs[0][0]; /* is short */ in hantro_vp8_prob_update() 81 dst[1] = entropy->mv_probs[1][0]; in hantro_vp8_prob_update() [all …]
|
/openbmc/linux/drivers/char/ |
H A D | random.c | 486 type entropy[CHACHA_BLOCK_SIZE * 3 / (2 * sizeof(type))]; \ 515 if (batch->position >= ARRAY_SIZE(batch->entropy) || \ 517 _get_random_bytes(batch->entropy, sizeof(batch->entropy)); \ 522 ret = batch->entropy[batch->position]; \ 523 batch->entropy[batch->position] = 0; \ 812 unsigned long flags, entropy = random_get_entropy(); in random_pm_notification() local 823 _mix_pool_bytes(&entropy, sizeof(entropy)); in random_pm_notification() 843 unsigned long entropy[BLAKE2S_BLOCK_SIZE / sizeof(long)]; in random_init_early() local 851 for (i = 0, arch_bits = sizeof(entropy) * 8; i < ARRAY_SIZE(entropy);) { in random_init_early() 852 longs = arch_get_random_seed_longs(entropy, ARRAY_SIZE(entropy) - i); in random_init_early() [all …]
|
/openbmc/linux/lib/zstd/decompress/ |
H A D | zstd_ddict.c | 37 ZSTD_entropyDTables_t entropy; member 72 dctx->LLTptr = ddict->entropy.LLTable; in ZSTD_copyDDictParameters() 73 dctx->MLTptr = ddict->entropy.MLTable; in ZSTD_copyDDictParameters() 74 dctx->OFTptr = ddict->entropy.OFTable; in ZSTD_copyDDictParameters() 75 dctx->HUFptr = ddict->entropy.hufTable; in ZSTD_copyDDictParameters() 76 dctx->entropy.rep[0] = ddict->entropy.rep[0]; in ZSTD_copyDDictParameters() 77 dctx->entropy.rep[1] = ddict->entropy.rep[1]; in ZSTD_copyDDictParameters() 78 dctx->entropy.rep[2] = ddict->entropy.rep[2]; in ZSTD_copyDDictParameters() 110 &ddict->entropy, ddict->dictContent, ddict->dictSize)), in ZSTD_loadEntropy_intoDDict() 134 …ddict->entropy.hufTable[0] = (HUF_DTable)((HufLog)*0x1000001); /* cover both little and big endia… in ZSTD_initDDict_internal()
|
H A D | zstd_decompress.c | 1287 ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy, in ZSTD_loadDEntropy() argument 1297 …entropyDTables_t, OFTable) == offsetof(ZSTD_entropyDTables_t, LLTable) + sizeof(entropy->LLTable)); in ZSTD_loadDEntropy() 1298 …entropyDTables_t, MLTable) == offsetof(ZSTD_entropyDTables_t, OFTable) + sizeof(entropy->OFTable)); in ZSTD_loadDEntropy() 1299 …ZSTD_STATIC_ASSERT(sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy->MLTable) … in ZSTD_loadDEntropy() 1300 …{ void* const workspace = &entropy->LLTable; /* use fse tables as temporary workspace; implies… in ZSTD_loadDEntropy() 1301 …size_t const workspaceSize = sizeof(entropy->LLTable) + sizeof(entropy->OFTable) + sizeof(entropy-… in ZSTD_loadDEntropy() 1304 size_t const hSize = HUF_readDTableX1_wksp(entropy->hufTable, in ZSTD_loadDEntropy() 1308 size_t const hSize = HUF_readDTableX2_wksp(entropy->hufTable, in ZSTD_loadDEntropy() 1322 ZSTD_buildFSETable( entropy->OFTable, in ZSTD_loadDEntropy() 1326 entropy->workspace, sizeof(entropy->workspace), in ZSTD_loadDEntropy() [all …]
|
H A D | zstd_decompress_internal.h | 131 ZSTD_entropyDTables_t entropy; member 217 size_t ZSTD_loadDEntropy(ZSTD_entropyDTables_t* entropy,
|
/openbmc/linux/drivers/media/test-drivers/visl/ |
H A D | visl-trace-vp8.h | 21 __entry->f.entropy.coeff_probs, 22 sizeof(__entry->f.entropy.coeff_probs), 24 __print_array(__entry->f.entropy.y_mode_probs, 25 ARRAY_SIZE(__entry->f.entropy.y_mode_probs), 26 sizeof(__entry->f.entropy.y_mode_probs[0])), 27 __print_array(__entry->f.entropy.uv_mode_probs, 28 ARRAY_SIZE(__entry->f.entropy.uv_mode_probs), 29 sizeof(__entry->f.entropy.uv_mode_probs[0])), 31 __entry->f.entropy.mv_probs, 32 sizeof(__entry->f.entropy.mv_probs),
|
/openbmc/linux/arch/x86/mm/ |
H A D | kaslr.c | 132 unsigned long entropy; in kernel_randomize_memory() local 138 entropy = remain_entropy / (ARRAY_SIZE(kaslr_regions) - i); in kernel_randomize_memory() 140 entropy = (rand % (entropy + 1)) & PUD_MASK; in kernel_randomize_memory() 141 vaddr += entropy; in kernel_randomize_memory() 157 remain_entropy -= entropy; in kernel_randomize_memory()
|
/openbmc/linux/arch/s390/boot/ |
H A D | kaslr.c | 59 __u64 entropy[4]; in get_random() local 79 (u8 *) entropy, (u8 *) entropy, in get_random() 80 sizeof(entropy)); in get_random() 81 memcpy(prng.parm_block, entropy, sizeof(entropy)); in get_random()
|
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.c | 74 u16 pkey, u16 entropy, u8 sc, u8 rc, in opa_vnic_make_header() argument 81 h[3] = entropy; in opa_vnic_make_header() 461 u8 entropy) in opa_vnic_get_def_port() argument 466 flow_id = ((entropy & 0xf) + (entropy >> 4)); in opa_vnic_get_def_port() 487 u8 def_port, sc, rc, entropy, *hdr; in opa_vnic_encap_skb() local 493 entropy = opa_vnic_calc_entropy(skb); in opa_vnic_encap_skb() 494 def_port = opa_vnic_get_def_port(adapter, entropy); in opa_vnic_encap_skb() 503 mdata->entropy = entropy; in opa_vnic_encap_skb() 511 info->vesw.pkey, entropy, sc, rc, in opa_vnic_encap_skb()
|
/openbmc/linux/crypto/ |
H A D | algif_rng.c | 63 u8 *entropy; member 226 kfree_sensitive(pctx->entropy); in rng_release() 269 if (IS_ENABLED(CONFIG_CRYPTO_USER_API_RNG_CAVP) && pctx->entropy) in rng_accept_parent() 285 static int __maybe_unused rng_setentropy(void *private, sockptr_t entropy, in rng_setentropy() argument 294 if (pctx->entropy) in rng_setentropy() 301 kentropy = memdup_sockptr(entropy, len); in rng_setentropy() 311 pctx->entropy = kentropy; in rng_setentropy()
|
H A D | drbg.c | 244 const unsigned char *entropy) in drbg_fips_continuous_test() argument 261 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test() 266 ret = memcmp(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test() 269 memcpy(drbg->prev, entropy, entropylen); in drbg_fips_continuous_test() 1077 unsigned char *entropy, in drbg_get_random_bytes() argument 1083 get_random_bytes(entropy, entropylen); in drbg_get_random_bytes() 1084 ret = drbg_fips_continuous_test(drbg, entropy); in drbg_get_random_bytes() 1097 unsigned char entropy[32]; in drbg_seed_from_random() local 1101 BUG_ON(entropylen > sizeof(entropy)); in drbg_seed_from_random() 1103 drbg_string_fill(&data, entropy, entropylen); in drbg_seed_from_random() [all …]
|
/openbmc/linux/lib/zstd/compress/ |
H A D | zstd_compress_superblock.c | 259 static size_t ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, in ZSTD_compressSubBlock() argument 276 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock() 283 { size_t cSeqSize = ZSTD_compressSubBlock_sequences(&entropy->fse, in ZSTD_compressSubBlock() 393 const ZSTD_entropyCTables_t* entropy, in ZSTD_estimateSubBlockSize() argument 399 … &entropy->huf, &entropyMetadata->hufMetadata, in ZSTD_estimateSubBlockSize() 402 … nbSeq, &entropy->fse, &entropyMetadata->fseMetadata, in ZSTD_estimateSubBlockSize() 481 &nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 487 const size_t cSize = ZSTD_compressSubBlock(&nextCBlock->entropy, entropyMetadata, in ZSTD_compressSubBlock_multi() 521 … ZSTD_memcpy(&nextCBlock->entropy.huf, &prevCBlock->entropy.huf, sizeof(prevCBlock->entropy.huf)); in ZSTD_compressSubBlock_multi() 558 &zc->blockState.prevCBlock->entropy, in ZSTD_compressSuperBlock() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | u2f-emulated.c | 81 char *entropy; member 260 ret = u2f_emulated_read(key->entropy, (char *)&setup_info.entropy, in u2f_emulated_setup_vdev_manualy() 261 sizeof(setup_info.entropy)); in u2f_emulated_setup_vdev_manualy() 303 if (key->cert != NULL || key->privkey != NULL || key->entropy != NULL in u2f_emulated_realize() 306 && key->entropy != NULL && key->counter != NULL) { in u2f_emulated_realize() 376 DEFINE_PROP_STRING("entropy", U2FEmulatedState, entropy),
|
/openbmc/qemu/scripts/ |
H A D | u2f-setup-gen.py | 25 entropy: bytes, counter: int) -> None: 49 f.write(entropy) 142 entropy = os.urandom(48) 148 write_setup_dir(dirpath, privkey_pem, certificate_pem, entropy, counter)
|
/openbmc/linux/scripts/gcc-plugins/ |
H A D | Kconfig | 33 bool "Generate some entropy during boot and runtime" 36 extract some entropy from both original and artificially created 38 there is little 'natural' source of entropy normally. The cost 42 Note that entropy extracted this way is not cryptographically
|
/openbmc/openbmc/poky/meta/recipes-core/udev/eudev/ |
H A D | 0001-random-util.c-sync-dev_urandom-implementation-to-sys.patch | 11 enforces the /dev/urandom entropy initialization from 18 delay to fill the 256 bits entropy for the case CONFIG_HZ=250. 25 - If enough entropy is not supplied, fallback to reading /dev/urandom, 75 - * returned entropy, but is good enough for or usual usecases 93 - /* not enough entropy for now. Let's 98 - * amount of entropy. */
|
/openbmc/qemu/docs/system/devices/ |
H A D | usb-u2f.rst | 54 * 48 bytes of entropy (random bits) 79 * ``entropy``: 48 bytes of entropy 90 * ``entropy`` 93 … -device u2f-emulated,cert=$DIR1/$FILE1,priv=$DIR2/$FILE2,counter=$DIR3/$FILE3,entropy=$DIR4/$FILE4
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | trace_ibhdrs.h | 88 u16 *entropy, u16 *len, u16 *pkey, 94 u8 rc, u8 sc, u8 sl, u16 entropy, 138 __field(u16, entropy) 166 &__entry->entropy, 236 __entry->entropy, 297 __field(u16, entropy) 326 &__entry->entropy, 400 __entry->entropy,
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_vp8.c | 599 memcpy(&prob_table[0x1008], slice->entropy.y_mode_probs, in cedrus_vp8_update_probs() 600 sizeof(slice->entropy.y_mode_probs)); in cedrus_vp8_update_probs() 601 memcpy(&prob_table[0x1010], slice->entropy.uv_mode_probs, in cedrus_vp8_update_probs() 602 sizeof(slice->entropy.uv_mode_probs)); in cedrus_vp8_update_probs() 612 memcpy(&prob_table[0x1020], slice->entropy.mv_probs[0], in cedrus_vp8_update_probs() 614 memcpy(&prob_table[0x1040], slice->entropy.mv_probs[1], in cedrus_vp8_update_probs() 621 slice->entropy.coeff_probs[i][j][k], 11); in cedrus_vp8_update_probs()
|
/openbmc/linux/drivers/char/hw_random/ |
H A D | core.c | 75 size_t entropy = bytes_read * 8 * rng->quality / 1024; in add_early_randomness() local 76 add_hwgenerator_randomness(rng_fillbuf, bytes_read, entropy, false); in add_early_randomness() 501 size_t entropy, entropy_credit = 0; /* in 1/1024 of a bit */ in hwrng_fillfn() local 530 entropy = rc * quality * 8 + entropy_credit; in hwrng_fillfn() 531 if ((entropy >> 10) == 0) in hwrng_fillfn() 532 entropy_credit = entropy; in hwrng_fillfn() 536 entropy >> 10, true); in hwrng_fillfn()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/haveged/ |
H A D | haveged_1.9.19.bb | 1 SUMMARY = "haveged - A simple entropy daemon" 2 …an adaptation of the HAVEGE algorithm. Haveged was created to remedy low-entropy conditions in the…
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | relocate.c | 95 unsigned long entropy = random_get_entropy(); in get_random_boot() local 101 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
|
/openbmc/linux/arch/s390/crypto/ |
H A D | prng.c | 189 __u64 entropy[4]; in prng_tdes_add_entropy() local 194 (char *) entropy, (char *) entropy, in prng_tdes_add_entropy() 195 sizeof(entropy)); in prng_tdes_add_entropy() 196 memcpy(prng_data->prngws.parm_block, entropy, sizeof(entropy)); in prng_tdes_add_entropy()
|
/openbmc/linux/Documentation/powerpc/ |
H A D | kaslr-booke32.rst | 22 pass entropy via the /chosen/kaslr-seed node in device tree. 26 bit of the entropy to decide the index of the 64M zone. Then we chose a
|
/openbmc/linux/arch/mips/kernel/ |
H A D | relocate.c | 217 unsigned long entropy = random_get_entropy(); in get_random_boot() local 224 hash = rotate_xor(hash, &entropy, sizeof(entropy)); in get_random_boot()
|