Searched refs:rand_data (Results 1 – 7 of 7) sorted by relevance
| /freebsd/crypto/openssl/test/ |
| H A D | cmp_asn_test.c | 14 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable 97 || !TEST_true(ASN1_OCTET_STRING_set(fixture->src_string, rand_data, in test_ASN1_OCTET_STRING_set() 98 sizeof(rand_data)))) { in test_ASN1_OCTET_STRING_set() 112 || !TEST_true(ASN1_OCTET_STRING_set(fixture->src_string, rand_data, in test_ASN1_OCTET_STRING_set_tgt_is_src() 113 sizeof(rand_data)))) { in test_ASN1_OCTET_STRING_set_tgt_is_src() 128 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
|
| H A D | cmp_protect_test.c | 75 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable 212 const size_t size = sizeof(rand_data) / 2; in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() 224 rand_data, size)) in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() 226 rand_data + size, in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key() 561 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE() 602 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()
|
| H A D | cmp_hdr_test.c | 14 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable 224 if (!TEST_int_eq(ASN1_OCTET_STRING_set(senderKID, rand_data, in execute_HDR_set1_senderKID_test() 225 sizeof(rand_data)), in execute_HDR_set1_senderKID_test() 489 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
|
| H A D | cmp_vfy_test.c | 83 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable 545 setup_check_update(&fixture, 0, allow_unprotected, 1, rand_data, NULL); in test_msg_check_transaction_id_bad() 569 setup_check_update(&fixture, 0, allow_unprotected, 1, NULL, rand_data); in test_msg_check_recipient_nonce_bad() 620 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE() 657 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()
|
| H A D | wpackettest.c | 584 unsigned char rand_data[9]; in test_WPACKET_quic_vlint_random() local 589 if (!TEST_int_gt(RAND_bytes(rand_data, sizeof(rand_data)), 0)) in test_WPACKET_quic_vlint_random() 592 memcpy(&expected, rand_data, sizeof(expected)); in test_WPACKET_quic_vlint_random() 597 switch (rand_data[8] & 3) { in test_WPACKET_quic_vlint_random()
|
| /freebsd/sys/contrib/openzfs/cmd/raidz_test/ |
| H A D | raidz_test.c | 39 static int *rand_data; variable 273 memcpy(data, (char *)rand_data + offset, size); in init_rand() 836 rand_data = (int *)umem_alloc(SPA_MAXBLOCKSIZE, UMEM_NOFAIL); in main() 839 rand_data[i] = rand(); in main() 841 mprotect(rand_data, SPA_MAXBLOCKSIZE, PROT_READ); in main() 851 mprotect(rand_data, SPA_MAXBLOCKSIZE, PROT_READ | PROT_WRITE); in main() 853 umem_free(rand_data, SPA_MAXBLOCKSIZE); in main()
|
| /freebsd/crypto/openssl/providers/implementations/rands/ |
| H A D | seed_src_jitter.c | 86 struct rand_data *jitter_ec = NULL; in get_jitter_random_value()
|