ReactOS
0.4.15-dev-2359-g0dedb9b
|
#include <stdio.h>
#include <ntstatus.h>
#include <windows.h>
#include <bcrypt.h>
#include "wine/test.h"
Go to the source code of this file.
Macros | |
#define | WIN32_NO_STATUS |
#define | test_hash_length(a, b) _test_hash_length(__LINE__,a,b) |
#define | test_alg_name(a, b) _test_alg_name(__LINE__,a,b) |
Functions | |
static | NTSTATUS (WINAPI *pBCryptHash)(BCRYPT_ALG_HANDLE algorithm |
static void | test_BCryptGenRandom (void) |
static void | test_BCryptGetFipsAlgorithmMode (void) |
static void | format_hash (const UCHAR *bytes, ULONG size, char *buf) |
static int | strcmp_wa (const WCHAR *strw, const char *stra) |
static void | _test_hash_length (unsigned line, void *handle, ULONG exlen) |
static void | _test_alg_name (unsigned line, void *handle, const char *exname) |
static void | test_sha1 (void) |
static void | test_sha256 (void) |
static void | test_sha384 (void) |
static void | test_sha512 (void) |
static void | test_md5 (void) |
static void | test_BcryptHash (void) |
static void | test_rng (void) |
START_TEST (bcrypt) | |
Variables | |
static UCHAR * | secret |
static UCHAR ULONG | secretlen |
static UCHAR ULONG UCHAR * | input |
static UCHAR ULONG UCHAR ULONG | inputlen |
static UCHAR ULONG UCHAR ULONG UCHAR * | output |
static UCHAR ULONG UCHAR ULONG UCHAR ULONG | outputlen |
Definition at line 139 of file bcrypt.c.
Definition at line 127 of file bcrypt.c.
Definition at line 108 of file bcrypt.c.
Referenced by test_BcryptHash(), test_md5(), test_sha1(), test_sha256(), test_sha384(), and test_sha512().
START_TEST | ( | bcrypt | ) |
Definition at line 759 of file bcrypt.c.
Definition at line 32 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 62 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 688 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 581 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 731 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 152 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 257 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 364 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 471 of file bcrypt.c.
Referenced by START_TEST().
Definition at line 29 of file bcrypt.c.
Referenced by BCryptHash(), and str_handle_lines().
Definition at line 29 of file bcrypt.c.
Referenced by _find_font_for_range(), abort(), AX_ConvertDialogTemplate(), BCryptFinishHash(), BCryptHash(), bitmap_decompress(), bitmap_decompress1(), bitmap_decompress2(), bitmap_decompress3(), bitmap_decompress4(), calc_output_hex(), calc_output_multi(), calc_output_quad(), calc_output_stereo(), ChkdskCallback(), convert_depth(), convert_to_dos_path(), ConvertJapaneseUnicodeToJIS(), ConvertJIS2SJIS(), ConvertJISJapaneseToUnicode(), ConvertSJIS2JIS(), ConvertUnknownJapaneseToUnicode(), tinyxml2::XMLUtil::ConvertUTF32ToUTF8(), CopyEventEntry(), CRAM_Decompress(), CRAM_DecompressEx(), CreateXmlWriterOutputWithEncodingCodePage(), CreateXmlWriterOutputWithEncodingName(), CRYPT_EncodeValue(), CRYPT_EncodeValueWithType(), CRYPT_SerializeContextsToStream(), CRYPT_WriteSerializedStoreToStream(), debugcontrol_CoerceValue(), debugcontrol_CoerceValues(), DECLARE_INTERFACE_(), decode_base64(), decode_cinepak(), decode_qp(), EqualTest::equalto(), expand_variables_buffer(), file_dlg_proc(), FindFirstVolumeW(), FormatCallback(), FormatExCallback(), free_output_buffer(), FT_Gzip_Uncompress(), GdiplusStartup(), get_builder_component(), get_output_encoding_name(), get_shader_semantics(), GetOutlineTextMetricsA(), grow_output_buffer(), Host_Echo(), init_output_buffer(), init_output_registers(), ITERATE_PublishComponent(), JustDoIt(), LogicTest::logicand(), LogicTest::logicor(), lspci_send(), main(), PlusMinusTest::minus0(), ModulusTest::modulus0(), NeqTest::negate0(), negotiation_TryOutputProps(), NeqTest::nequal0(), NumPutGetTest::num_put_float(), OUTPUT_Line(), parse_anchor(), parse_canonicalize(), parse_document(), parse_domain(), parse_friendly(), parse_path_from_url(), parse_rootdocument(), parse_schema(), parse_site(), parse_url_from_path(), parseAndPrintFile(), PrintBugreport(), PrintStackBacktrace(), PrintSystemInfo(), PrintThread(), Ptr2Test::ptrbin1(), Ptr2Test::ptrbin2(), rdssl_hmac_md5(), reader_accl_GetCodecInterface(), reader_accl_Notify(), record_declaration(), run_one(), set_tex_op_nvrc(), shader_glsl_generate_alpha_test(), shader_glsl_generate_default_control_point_phase(), shader_glsl_generate_ffp_fragment_shader(), shader_glsl_generate_fog_code(), shader_glsl_generate_ps_epilogue(), shader_glsl_generate_srgb_write_correction(), shader_glsl_generate_vs3_rasterizer_input_setup(), shader_glsl_setup_sm3_rasterizer_input(), shader_glsl_setup_sm4_shader_output(), shader_glsl_setup_vs3_output(), START_TEST(), Stream_Read(), subprocess(), SystemFunction001(), SystemFunction002(), SystemFunction003(), test_bom(), test_convert(), test_FindClosestCategory(), test_GetFullPathNameA(), test_GetFullPathNameW(), test_GetVolumePathNameA(), test_HashData(), test_invalid_output_encoding(), test_JapaneseConversion(), test_md4hashfunc(), test_mp3(), test_output(), Test_Shimdata(), test_simpleroundtrip(), test_SystemFunction001(), test_SystemFunction002(), test_SystemFunction003(), test_SystemFunction004(), test_SystemFunction005(), test_SystemFunction007(), test_SystemFunction008(), test_SystemFunction009(), test_SystemFunction_dec32(), test_SystemFunction_decrypt(), test_SystemFunction_enc32(), test_SystemFunction_encrypt(), test_utf7_decoding(), test_utf7_encoding(), test_WriteAttributeString(), test_WriteConsoleOutputCharacterA(), test_WriteDocType(), test_WriteElementString(), test_writeroutput(), test_writestartdocument(), test_WriteStartElement(), TranslateBitmapBits(), TRIO_ARGS2(), UnaryTest::ucompos1(), UnaryTest::ucompos2(), VMR9_ImagePresenter_PresentImage(), WMReader_GetOutputProps(), WMReader_SetOutputProps(), WMReaderAdvanced_GetMaxOutputSampleSize(), WMSyncReader_GetMaxOutputSampleSize(), WMSyncReader_GetOutputProps(), WMSyncReader_GetStreamNumberForOutput(), WMSyncReader_SetOutputProps(), wpp_parse(), write_cdata_section(), write_output_buffer(), write_output_buffer_char(), write_output_buffer_quoted(), write_output_qname(), writeroutput_alloc(), writeroutput_flush_stream(), writeroutput_free(), writeroutput_realloc(), WTSQuerySessionInformationW(), wWinMain(), xmlCharEncOutFunc(), xmlNewCharEncodingHandler(), xmlwriter_SetOutput(), xslprocessor_get_output(), xslprocessor_put_output(), xsltApplyStylesheetInternal(), xsltApplyStylesheetUser(), xsltDebugDumpExtensions(), xsltDebugDumpExtensionsCallback(), xsltDebugDumpExtModulesCallback(), xsltNumberFormat(), xsltProfileStylesheet(), xsltRunStylesheet(), xsltRunStylesheetUser(), zstd_compress(), ZSTD_compress_generic(), ZSTD_compress_generic_simpleArgs(), ZSTD_compressStream(), ZSTD_compressStream_generic(), zstd_decompress(), ZSTD_decompress_generic(), ZSTD_decompress_generic_simpleArgs(), ZSTD_decompressStream(), ZSTD_endStream(), and ZSTD_flushStream().
Definition at line 29 of file bcrypt.c.
Referenced by BCryptHash().
UCHAR* secret |
Definition at line 29 of file bcrypt.c.
Referenced by BCryptCreateHash(), BCryptHash(), and run_child().
Definition at line 29 of file bcrypt.c.
Referenced by BCryptCreateHash(), and BCryptHash().