radmin3: use hexadecimal instead of .incbin

pull/3300/head
philsmd 2 years ago
parent e0713889a0
commit ff53873791
No known key found for this signature in database
GPG Key ID: 4F25D016D9D6A8AF

@ -1,6 +1,11 @@
/**
* Author......: See docs/credits.txt
* License.....: MIT
*
* Further credits:
* The password-storage algorithm used by Radmin 3 was analyzed and made public
* by synacktiv:
* https://www.synacktiv.com/publications/cracking-radmin-server-3-passwords.html
*/
#ifndef _INC_RADMIN3_CONSTANTS_H

File diff suppressed because it is too large Load Diff

@ -62,25 +62,6 @@ typedef struct radmin3
} radmin3_t;
// trick to include binary data file in assembly:
// credits go to http://elm-chan.org/junk/32bit/binclude.html#inc_c
#define INCLUDE_BIN(name, file) asm \
( \
".section .rodata \n" \
".balign 4 \n" \
".global " name " \n" \
name ": \n" \
".incbin \"" file "\" \n" \
".section .text \n" \
)
INCLUDE_BIN ("RADMIN3_PRE", "include/inc_radmin3_constants_pre.data");
#undef INCLUDE_BIN
extern const u32 RADMIN3_PRE[PRECOMP_DATALEN];
u64 module_esalt_size (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
{
const u64 esalt_size = (const u64) sizeof (radmin3_t);

Loading…
Cancel
Save