Home
last modified time | relevance | path

Searched refs:rand_data (Results 1 – 4 of 4) sorted by relevance

/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dcmp_asn_test.c14 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable
98 || !TEST_true(ASN1_OCTET_STRING_set(fixture->src_string, rand_data, in test_ASN1_OCTET_STRING_set()
99 sizeof(rand_data)))) { in test_ASN1_OCTET_STRING_set()
113 || !TEST_true(ASN1_OCTET_STRING_set(fixture->src_string, rand_data, in test_ASN1_OCTET_STRING_set_tgt_is_src()
114 sizeof(rand_data)))) { in test_ASN1_OCTET_STRING_set_tgt_is_src()
130 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
H A Dcmp_protect_test.c71 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable
210 const size_t size = sizeof(rand_data) / 2; in test_MSG_protect_with_msg_sig_alg_protection_plus_rsa_key()
222 rand_data, size)) 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()
558 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE()
592 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()
H A Dcmp_hdr_test.c14 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable
222 if (!TEST_int_eq(ASN1_OCTET_STRING_set(senderKID, rand_data, in execute_HDR_set1_senderKID_test()
223 sizeof(rand_data)), 1)) in execute_HDR_set1_senderKID_test()
489 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in setup_tests()
H A Dcmp_vfy_test.c83 static unsigned char rand_data[OSSL_CMP_TRANSACTIONID_LENGTH]; variable
529 setup_check_update(&fixture, 0, allow_unprotected, 1, rand_data, NULL); in test_msg_check_transaction_id_bad()
553 setup_check_update(&fixture, 0, allow_unprotected, 1, NULL, rand_data); in test_msg_check_recipient_nonce_bad()
605 RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH); in OPT_TEST_DECLARE_USAGE()
642 if (!TEST_int_eq(1, RAND_bytes(rand_data, OSSL_CMP_TRANSACTIONID_LENGTH))) in OPT_TEST_DECLARE_USAGE()