/Zephyr-Core-2.7.6/subsys/random/ |
D | Kconfig | 1 # Random configuration options 6 menu "Random Number Generators" 9 bool "Non-random number generator" 12 This option signifies that the kernel's random number APIs are 13 permitted to return values that are not truly random. 14 This capability is provided for testing purposes, when a truly random 15 number generator is not available. The non-random number generator 19 prompt "Random generator" 23 Platform dependent non-cryptographically secure random number support. 26 to support random request then select that. Otherwise, select the [all …]
|
D | rand32_timer.c | 9 * @brief Non-random number generator based on system timer 11 * This module provides a non-random implementation of sys_rand32_get(), which 12 * is not meant to be used in a final product as a truly random number 14 * provide a random number generator. 17 #include <random/rand32.h> 26 * Symbols used to ensure a rapid series of calls to random number generator 35 * @brief Get a 32 bit random number 37 * The non-random number generator returns values that are based off the 51 * @brief Fill destination buffer with random numbers 53 * The non-random number generator returns values that are based off the
|
/Zephyr-Core-2.7.6/doc/reference/random/ |
D | index.rst | 3 Random Number Generation 6 The random API subsystem provides random number generation APIs in both 8 random API to use is based on the cryptographic requirements of the 9 random number. The non-cryptographic APIs will return random values 12 The cryptographically secure random functions shall be compliant to the 13 FIPS 140-2 [NIST02]_ recommended algorithms. Hardware based random-number 31 These options can be found in the following path :zephyr_file:`subsys/random/Kconfig`. 34 For testing, this option permits random number APIs to return values 35 that are not truly random. 37 The random number generator choice group allows selection of the RNG [all …]
|
/Zephyr-Core-2.7.6/samples/modules/tflite-micro/magic_wand/train/ |
D | data_prepare.py | 35 import random 96 start_x = (random.random() - 0.5) * 2000 97 start_y = (random.random() - 0.5) * 2000 98 start_z = (random.random() - 0.5) * 2000 99 x_increase = (random.random() - 0.5) * 10 100 y_increase = (random.random() - 0.5) * 10 101 z_increase = (random.random() - 0.5) * 10 104 start_x + j * x_increase + (random.random() - 0.5) * 6, 105 start_y + j * y_increase + (random.random() - 0.5) * 6, 106 start_z + j * z_increase + (random.random() - 0.5) * 6 [all …]
|
D | data_augmentation.py | 24 import random 54 (random.random() - 0.5) * 200).tolist()) 56 # Random noise 61 tmp_data[i][j] = data[i][j] + 5 * random.random()
|
D | data_augmentation_test.py | 35 original_data = np.random.rand(10, 3).tolist() 42 np.random.rand(128, 3).tolist(), 43 np.random.rand(66, 2).tolist(), 44 np.random.rand(9, 1).tolist()
|
/Zephyr-Core-2.7.6/include/random/ |
D | rand32.h | 9 * @brief Random number generator header file 11 * This header file declares prototypes for the kernel's random number 14 * Typically, a platform enables the appropriate source for the random 28 * @brief Random Function APIs 29 * @defgroup random_api Random Function APIs 39 * @brief Return a 32-bit random value that should pass general 42 * @note The random value returned is not a cryptographically secure 43 * random number value. 45 * @return 32-bit random value. 50 * @brief Fill the destination buffer with random data values that should [all …]
|
/Zephyr-Core-2.7.6/tests/crypto/rand32/src/ |
D | main.c | 1 /* test random number generator APIs */ 10 * This tests the following random number routines: 18 #include <random/rand32.h> 38 /* Test early boot random number generation function */ in test_rand32() 50 printk("Generating random numbers\n"); in test_rand32() 70 "random numbers returned same value with high probability"); in test_rand32() 73 printk("Generating bulk fill random numbers\n"); in test_rand32() 87 "random numbers returned same value with high probability"); in test_rand32() 92 printk("Generating bulk fill cryptographically secure random numbers\n"); in test_rand32() 107 "random numbers returned same value with high probability"); in test_rand32() [all …]
|
/Zephyr-Core-2.7.6/drivers/entropy/ |
D | Kconfig.mcux | 11 This option enables the random number generator accelerator (RNGA) 19 This option enables the true random number generator (TRNG) 27 This option enables the true random number generator (TRNG) 31 # Don't use use the MCUX TRNG as a random source as it is not designed 32 # to supply a continuous random stream. Instead, it is used to provide
|
D | Kconfig.nrf5 | 21 This option enables the RNG peripheral, which is a random number 23 random 8-bit value to the host when read. 35 int "Thread-mode random number pool size" 44 int "Thread-mode random number pool low-water threshold" 53 int "ISR-mode random number pool size" 62 int "ISR-mode random number pool low-water threshold"
|
D | entropy_mcux_rnga.c | 11 #include <random/rand32.h> 18 uint32_t random; in entropy_mcux_rnga_get_uint8() local 31 status = RNGA_GetRandomData(RNG, &random, sizeof(random)); in entropy_mcux_rnga_get_uint8() 33 output ^= random; in entropy_mcux_rnga_get_uint8()
|
D | Kconfig.native_posix | 8 This option enables the test random number generator for the 9 native_posix board (ARCH_POSIX). This is based on the host random() API. 12 It actually generates always the same sequence of random numbers if
|
D | Kconfig.stm32 | 23 int "Thread-mode random number pool size" 32 int "Thread-mode random number pool low-water threshold" 41 int "ISR-mode random number pool size" 50 int "ISR-mode random number pool low-water threshold"
|
D | Kconfig.sam | 7 bool "Atmel SAM MCU Family True Random Number Generator (TRNG) Driver" 11 Enable True Random Number Generator (TRNG) driver for Atmel SAM MCUs.
|
D | Kconfig.rv32m1 | 11 This option enables the true random number generator (TRNG) 14 # Don't use use the RV32M1 TRNG as a random source since it can be quite slow.
|
/Zephyr-Core-2.7.6/tests/crypto/rand32/ |
D | testcase.yaml | 3 tags: crypto random security 7 tags: crypto random security 12 tags: crypto entropy random security 17 tags: crypto entropy random security
|
/Zephyr-Core-2.7.6/subsys/testsuite/include/ |
D | busy_sim.h | 12 * When started, it is using counter device to generate interrupts at random 13 * intervals and busy loop for random period of time in that interrupt. Interrupt 15 * is used for getting random numbers. System work queue is used to get random
|
/Zephyr-Core-2.7.6/dts/bindings/rng/ |
D | espressif,esp32-trng.yaml | 5 Espressif ESP32 TRNG (True Random Number Generator). 8 disabled, the random number generator will give out pseudo-random numbers.
|
/Zephyr-Core-2.7.6/modules/ |
D | Kconfig.tinycrypt | 15 This option enables support for the pseudo-random number 35 This option enables support for pseudo-random number 44 Enabling ECC requires a cryptographically secure random number 53 Enabling ECC requires a cryptographically secure random number
|
/Zephyr-Core-2.7.6/include/bluetooth/ |
D | addr.h | 99 /** Check if a Bluetooth LE random address is resolvable private address. */ 101 /** Check if a Bluetooth LE random address is a non-resolvable private address. 104 /** Check if a Bluetooth LE random address is a static address. */ 107 /** Set a Bluetooth LE random address as a resolvable private address. */ 109 /** Set a Bluetooth LE random address as a non-resolvable private address. */ 111 /** Set a Bluetooth LE random address as a static address. */ 114 /** @brief Create a Bluetooth LE random non-resolvable private address. */ 117 /** @brief Create a Bluetooth LE random static address. */ 120 /** @brief Check if a Bluetooth LE address is a random private resolvable 125 * @return true if address is a random private resolvable address. [all …]
|
/Zephyr-Core-2.7.6/tests/drivers/entropy/api/src/ |
D | main.c | 16 * -# Read random numbers from Entropy driver. 20 * -# Random number should be generated. 66 * to get the random data and fill to passed buffer 76 TC_PRINT("error: no random device\n"); in get_entropy() 80 TC_PRINT("random device is %p, name is %s\n", in get_entropy()
|
/Zephyr-Core-2.7.6/doc/reference/peripherals/ |
D | entropy.rst | 11 for use by the random subsystem and cryptographic services. They are not 12 suitable to be used as random number generation functions.
|
/Zephyr-Core-2.7.6/subsys/bluetooth/host/ |
D | addr.c | 92 } else if (!strcmp(type, "random") || !strcmp(type, "(random)")) { in bt_addr_le_from_str() 96 } else if (!strcmp(type, "random-id") || !strcmp(type, "(random-id)")) { in bt_addr_le_from_str()
|
/Zephyr-Core-2.7.6/dts/bindings/ethernet/ |
D | ethernet.yaml | 15 zephyr,random-mac-address: 19 Use a random MAC address generated when the driver is initialized.
|
/Zephyr-Core-2.7.6/drivers/ieee802154/ |
D | Kconfig.b91 | 26 bool "Random MAC address" 29 Generate a random MAC address dynamically.
|