Home
last modified time | relevance | path

Searched refs:urandom (Results 1 – 25 of 314) sorted by relevance

12345678910>>...13

/external/python/cryptography/docs/
Drandom-numbers.rst12 provided random number generator`_, which is available as :func:`os.urandom`.
19 >>> iv = os.urandom(16)
21 This will use ``/dev/urandom`` on UNIX platforms, and ``CryptGenRandom`` on
26 ``int.from_bytes`` to convert the result of ``os.urandom``:
30 >>> serial = int.from_bytes(os.urandom(20), byteorder="big")
/external/vboot_reference/tests/futility/
Dtest_gbb_utility.sh36 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data1.toolong
37 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data2.toolong
38 dd if=/dev/urandom bs=17 count=1 of=${TMP}.data3.toolong
44 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data1.short
45 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data2.short
46 dd if=/dev/urandom bs=10 count=1 of=${TMP}.data3.short
62 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data1
63 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data2
64 dd if=/dev/urandom bs=16 count=1 of=${TMP}.data3
Dtest_show_kernel.sh19 dd if=/dev/urandom bs=16384 count=1 of=${TMP}.bootloader.bin
20 dd if=/dev/urandom bs=32768 count=1 of=${TMP}.kernel.bin
/external/vboot_reference/tests/
Dgen_preamble_testdata.sh56 dd if=/dev/urandom bs=32768 count=1 of="${DATADIR}/dummy_bootloader.bin"
59 dd if=/dev/urandom of="${DATADIR}/FWDATA" bs=32768 count=1
60 dd if=/dev/urandom of="${DATADIR}/KERNDATA" bs=32768 count=1
Dgen_fuzz_test_cases.sh72 dd if=/dev/urandom of=${TEST_IMAGE_FILE} bs=${TEST_IMAGE_SIZE} count=1
75 dd if=/dev/urandom of=${TEST_BOOTLOADER_FILE} bs=${TEST_BOOTLOADER_SIZE} \
79 dd if=/dev/urandom of=${TEST_CONFIG_FILE} bs=${TEST_CONFIG_SIZE} count=1
Dload_kernel_tests.sh26 dd if=/dev/urandom bs=16384 count=1 of="dummy_bootloader.bin"
27 dd if=/dev/urandom bs=32768 count=1 of="dummy_kernel.bin"
/external/rust/crates/ahash/patches/
D0001-Use-dev-urandom-instead-of-getrandom.patch4 Subject: [PATCH] Use /dev/urandom instead of getrandom()
6 To generate the ahash crate's default hash keys, use /dev/urandom
11 If opening or reading from /dev/urandom fails, fall back to getrandom().
32 + let mut f = File::open("/dev/urandom")?;
/external/abseil-cpp/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/openscreen/third_party/abseil/src/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/libtextclassifier/abseil-cpp/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/angle/third_party/abseil-cpp/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/internal/
Dexplicit_seed_seq_test.cc86 std::random_device urandom{"/dev/urandom"}; in TEST() local
88 seed = urandom(); in TEST()
132 std::random_device urandom("/dev/urandom"); in TEST() local
134 entry = urandom(); in TEST()
156 entry = urandom(); in TEST()
/external/python/cryptography/tests/hazmat/primitives/twofactor/
Dtest_hotp.py33 secret = os.urandom(10)
39 secret = os.urandom(10)
43 secret = os.urandom(16)
49 secret = os.urandom(16)
/external/python/cryptography/tests/hazmat/primitives/
Dtest_aead.py112 nonce = os.urandom(12)
175 nonce = os.urandom(12)
216 nonce = os.urandom(12)
236 nonce = os.urandom(14)
276 nonce = os.urandom(12)
286 nonce = os.urandom(13)
321 nonce = os.urandom(12)
340 nonce = os.urandom(12)
439 nonce = os.urandom(12)
452 nonce = os.urandom(12)
/external/python/rsa/rsa/
Drandnum.py35 randomdata = os.urandom(nbytes)
39 randomvalue = ord(os.urandom(1))
/external/python/cryptography/docs/hazmat/backends/
Dopenssl.rst72 ``/dev/urandom`` or ``CryptGenRandom``). This CSPRNG is not reseeded
79 sources its entropy from ``/dev/urandom`` on UNIX-like operating systems and
95 On macOS and FreeBSD ``/dev/urandom`` is an alias for ``/dev/random``. The
103 Linux uses its own PRNG design. ``/dev/urandom`` is a non-blocking source
117 | fallback | ``/dev/urandom`` with |
/external/angle/third_party/abseil-cpp/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/openscreen/third_party/abseil/src/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/abseil-cpp/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/libtextclassifier/abseil-cpp/absl/random/
Dseed_sequences_test.cc86 std::random_device urandom; in TEST() local
89 auto seq_from_rng = absl::CreateSeedSeqFrom(&urandom); in TEST()
/external/python/cryptography/src/cryptography/hazmat/primitives/ciphers/
Daead.py32 return os.urandom(32)
97 return os.urandom(bit_length // 8)
157 return os.urandom(bit_length // 8)
/external/python/cryptography/src/cryptography/
Dfernet.py47 return base64.urlsafe_b64encode(os.urandom(32))
51 iv = os.urandom(16)
162 iv = os.urandom(16)

12345678910>>...13