mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
Add missing EOF LF
This commit is contained in:
parent
f205f9db87
commit
1b2601a48a
105 changed files with 107 additions and 107 deletions
|
@ -433,4 +433,4 @@ void RunMod() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,4 +20,4 @@
|
|||
|
||||
#define OPTS 2
|
||||
|
||||
#endif /* __HF_MATTYRUN_H */
|
||||
#endif /* __HF_MATTYRUN_H */
|
||||
|
|
|
@ -259,4 +259,4 @@ void RunMod() {
|
|||
LED(selected + 1, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
|
||||
#define OPTS 2
|
||||
|
||||
#endif /* __HF_YOUNG_H */
|
||||
#endif /* __HF_YOUNG_H */
|
||||
|
|
|
@ -21,4 +21,4 @@
|
|||
|
||||
void hid_corporate_1000_calculate_checksum_and_set(uint32_t *high, uint32_t *low, uint32_t cardnum, uint32_t fc);
|
||||
|
||||
#endif /* __LF_HIDBRUTE_H */
|
||||
#endif /* __LF_HIDBRUTE_H */
|
||||
|
|
|
@ -164,4 +164,4 @@ void RunMod() {
|
|||
out:
|
||||
DbpString("[=] exiting");
|
||||
LEDsoff();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
|
||||
#define OPTS 2
|
||||
|
||||
#endif /* __LF_PROXBRUTE_H */
|
||||
#endif /* __LF_PROXBRUTE_H */
|
||||
|
|
|
@ -138,4 +138,4 @@ void RunMod() {
|
|||
out:
|
||||
DbpString("[=] exiting");
|
||||
LEDsoff();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@
|
|||
|
||||
#define OPTS 2
|
||||
|
||||
#endif /* __LF_SAMYRUN_H */
|
||||
#endif /* __LF_SAMYRUN_H */
|
||||
|
|
|
@ -16,4 +16,4 @@
|
|||
|
||||
extern void RunMod();
|
||||
|
||||
#endif /* __STANDALONE_H */
|
||||
#endif /* __STANDALONE_H */
|
||||
|
|
|
@ -1167,4 +1167,4 @@ int main() {
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -31,4 +31,4 @@ int AesCtxIni(AesCtx *pCtx, unsigned char *pIV, unsigned char *pKey, unsigned in
|
|||
int AesEncrypt(AesCtx *pCtx, unsigned char *pData, unsigned char *pCipher, unsigned int DataLen);
|
||||
int AesDecrypt(AesCtx *pCtx, unsigned char *pCipher, unsigned char *pData, unsigned int CipherLen);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -83,4 +83,4 @@ void Ring_Little_Star(uint16_t count) {
|
|||
Ring_BEE_TIME(note_1,2*count);
|
||||
LED_B_ON();
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
|
|
@ -630,4 +630,4 @@ void mifare_cypher_blocks_chained(desfiretag_t tag, desfirekey_t key, uint8_t *i
|
|||
mifare_cypher_single_block(key, data + offset, ivect, direction, operation, block_size);
|
||||
offset += block_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -152,4 +152,4 @@ void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfire
|
|||
Desfire_aes_key_new(buffer, key);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ void Desfire_aes_key_new_with_version(const uint8_t value[16], uint8_t version,
|
|||
uint8_t Desfire_key_get_version(desfirekey_t key);
|
||||
void Desfire_key_set_version(desfirekey_t key, uint8_t version);
|
||||
void Desfire_session_key_new(const uint8_t rnda[], const uint8_t rndb[], desfirekey_t authkey, desfirekey_t key);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -151,4 +151,4 @@ void Flashmem_print_status(void);
|
|||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -2456,4 +2456,4 @@ void iClass_Clone(uint8_t startblock, uint8_t endblock, uint8_t *data) {
|
|||
|
||||
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
||||
switch_off();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1634,4 +1634,4 @@ out:
|
|||
switch_off(); // disconnect raw
|
||||
SpinDelay(20);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -999,4 +999,4 @@ void DirectTag15693Command(uint32_t datalen, uint32_t speed, uint32_t recv, uint
|
|||
} else {
|
||||
cmd_send(CMD_ACK, 1, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2098,4 +2098,4 @@ void Mifare_DES_Auth2(uint32_t arg0, uint8_t *datain) {
|
|||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||
LEDsoff();
|
||||
set_tracing(false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,4 @@
|
|||
#include "crc.h"
|
||||
#include "protocols.h"
|
||||
#include "parity.h"
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -322,4 +322,4 @@ void RAMFUNC MfSniffSend() {
|
|||
LED_B_ON();
|
||||
cmd_send(CMD_ACK, 2, 0, 0, 0, 0); // 2 == data transfer finished.
|
||||
LED_B_OFF();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,4 +39,4 @@ bool RAMFUNC MfSniffLogic(const uint8_t *data, uint16_t len, uint8_t *parity, ui
|
|||
void RAMFUNC MfSniffSend(void);
|
||||
void MfSniffEnd(void);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -518,4 +518,4 @@ bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab) {
|
|||
tab[u + 2] = c + tab[u + 1];
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,4 +17,4 @@ bool AddBitPCF7931(bool b, uint32_t *tab, int32_t l, int32_t p);
|
|||
bool AddPatternPCF7931(uint32_t a, uint32_t b, uint32_t c, uint32_t *tab);
|
||||
void WritePCF7931(uint8_t pass1, uint8_t pass2, uint8_t pass3, uint8_t pass4, uint8_t pass5, uint8_t pass6, uint8_t pass7, uint16_t init_delay, int32_t l, int32_t p, uint8_t address, uint8_t byte, uint8_t data);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -77,4 +77,4 @@ void __attribute__((section(".startos"))) Vector(void) {
|
|||
|
||||
AppMain();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -24,4 +24,4 @@ char *strcat(char *dest, const char *src);
|
|||
void strreverse(char s[]);
|
||||
void itoa(int n, char s[]);
|
||||
|
||||
#endif /* __STRING_H */
|
||||
#endif /* __STRING_H */
|
||||
|
|
|
@ -44,4 +44,4 @@ extern void WaitUS(uint16_t us);
|
|||
extern void WaitMS(uint16_t ms);
|
||||
|
||||
extern void StopTicks(void);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -483,4 +483,4 @@ int CmdrevengSearch(const char *Cmd) {
|
|||
|
||||
if (!found) PrintAndLogEx(FAILED, "\nno matches found\n");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,4 +42,4 @@ extern int CmdFlashMemWipe(const char *Cmd);
|
|||
extern int CmdFlashMemInfo(const char *Cmd);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1315,4 +1315,4 @@ int CmdHF15(const char *Cmd) {
|
|||
int CmdHF15Help(const char *Cmd) {
|
||||
CmdsHelp(CommandTable15);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,4 +176,4 @@ int CmdHFEPA(const char *Cmd) {
|
|||
clearCommandBuffer();
|
||||
CmdsParse(CommandTable, Cmd);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -609,4 +609,4 @@ int CmdHFFelica(const char *Cmd) {
|
|||
int CmdHelp(const char *Cmd) {
|
||||
CmdsHelp(CommandTable);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,4 +24,4 @@
|
|||
extern int CmdHFFido(const char *Cmd);
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1317,4 +1317,4 @@ int CmdHFLegic(const char *Cmd) {
|
|||
int CmdHelp(const char *Cmd) {
|
||||
CmdsHelp(CommandTable);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1251,4 +1251,4 @@ uint64_t GetCrypto1ProbableKey(TAuthData *ad) {
|
|||
crypto1_get_lfsr(revstate, &key);
|
||||
crypto1_destroy(revstate);
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
static int CmdHelp(const char *Cmd);
|
||||
int CmdHF14AMfDESAuth(const char *Cmd);
|
||||
int CmdHFMFDesfire(const char *Cmd);
|
||||
int CmdHelp(const char *Cmd);
|
||||
int CmdHelp(const char *Cmd);
|
||||
|
|
|
@ -15,4 +15,4 @@
|
|||
extern int CmdHFMFP(const char *Cmd);
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -74,4 +74,4 @@ int CmdRev(const char *Cmd) {
|
|||
//-----------------------------------------------------------------------------
|
||||
int CommandReceived(char *Cmd) {
|
||||
return CmdsParse(CommandTable, Cmd);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -193,4 +193,4 @@ int CmdScript(const char *Cmd) {
|
|||
int CmdHelp(const char *Cmd) {
|
||||
PrintAndLogEx(NORMAL, "This is a feature to run Lua-scripts. You can place lua-scripts within the scripts/-folder. ");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,4 +40,4 @@ extern int usage_sm_raw(void);
|
|||
extern int usage_sm_reader(void);
|
||||
extern int usage_sm_info(void);
|
||||
extern int usage_sm_upgrade(void);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -38,4 +38,4 @@ extern int JsonLoadBufAsHex(json_t *elm, char *path, uint8_t *data, size_t maxbu
|
|||
|
||||
extern bool ParamLoadFromJson(struct tlvdb *tlv);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -577,4 +577,4 @@ int main(int argc, char *argv[]) {
|
|||
free_part_sum_bitarrays();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -692,4 +692,4 @@ int testElite() {
|
|||
errors += _test_iclass_key_permutation();
|
||||
errors += _testBruteforce();
|
||||
return errors;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,4 +75,4 @@ _errorcodes.tostring = function(command)
|
|||
end
|
||||
return ("Error, numeric or string argument expected, got : %s"):format(tostring(command))
|
||||
end
|
||||
return _errorcodes
|
||||
return _errorcodes
|
||||
|
|
|
@ -32,4 +32,4 @@ end
|
|||
|
||||
return {
|
||||
waitForTag = waitForTag,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,4 +91,4 @@ local PreCalc =
|
|||
return list
|
||||
end,
|
||||
}
|
||||
return PreCalc
|
||||
return PreCalc
|
||||
|
|
|
@ -155,4 +155,4 @@ local library = {
|
|||
ISO14B_COMMAND = ISO14B_COMMAND,
|
||||
}
|
||||
|
||||
return library
|
||||
return library
|
||||
|
|
|
@ -121,4 +121,4 @@ return {
|
|||
|
||||
return m[value] or "no tag-info available"
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -427,4 +427,4 @@ local Utils =
|
|||
-- end
|
||||
|
||||
}
|
||||
return Utils
|
||||
return Utils
|
||||
|
|
|
@ -100,4 +100,4 @@ extern int detect_classic_prng(void);
|
|||
extern int detect_classic_nackbug(bool verbose);
|
||||
extern void detect_classic_magic(void);
|
||||
extern void mf_crypto1_decrypt(struct Crypto1State *pcs, uint8_t *data, int len, bool isEncrypted);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -21,7 +21,7 @@ class TestEmlMfd(unittest.TestCase):
|
|||
]
|
||||
def test_eml2mfd(self):
|
||||
self.three_argument_test(pm3_eml2mfd.main, self.EML2MFD_TESTCASES)
|
||||
|
||||
|
||||
def test_mfd2eml(self):
|
||||
self.three_argument_test(pm3_mfd2eml.main,
|
||||
imap(reversed, self.EML2MFD_TESTCASES), c14n=hex_c14n)
|
||||
|
|
|
@ -939,4 +939,4 @@ static void munpack(model_t *dest, const struct mpreset *src) {
|
|||
dest->flags = src->flags;
|
||||
/* link to the name as it is static */
|
||||
dest->name = (src->alias) ? src->alias->name : NULL;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,4 +19,4 @@ extern int scandir(const char *dir, struct dirent ***namelist, int (*select)(con
|
|||
extern int alphasort(const struct dirent **a, const struct dirent **b);
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // SCANDIR_H__
|
||||
#endif // SCANDIR_H__
|
||||
|
|
|
@ -776,4 +776,4 @@ int set_pm3_libraries(lua_State *L) {
|
|||
strcat(libraries_path, LUA_LIBRARIES_WILDCARD);
|
||||
setLuaPath(L, libraries_path);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -538,4 +538,4 @@ function main(args)
|
|||
end
|
||||
|
||||
-- call main with arguments
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -297,4 +297,4 @@ local function main(args)
|
|||
core.console('hw ping')
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -173,4 +173,4 @@ local function main(args)
|
|||
dumptofile( keys )
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -175,4 +175,4 @@ local function main(args)
|
|||
print(string.format('PWD | %s', pwd))
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -194,4 +194,4 @@ local function main(args)
|
|||
dumptofile( keys )
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -273,4 +273,4 @@ if "--test"==args then
|
|||
else
|
||||
-- Call the main
|
||||
main(args)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -74,4 +74,4 @@ function main(args)
|
|||
end
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -57,4 +57,4 @@ local function main(args)
|
|||
ExitMsg(("Wrote a BIN dump to the file %s"):format(filename))
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -64,4 +64,4 @@ In the future, we may implement so that scripts are invoked directly
|
|||
into a 'main' function, instead of being executed blindly. For future
|
||||
compatibility, I have done so, but I invoke my main from here.
|
||||
--]]
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -213,4 +213,4 @@ local function main(args)
|
|||
end
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -15,4 +15,4 @@ local function main(args)
|
|||
end
|
||||
return
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -62,4 +62,4 @@ In the future, we may implement so that scripts are invoked directly
|
|||
into a 'main' function, instead of being executed blindly. For future
|
||||
compatibility, I have done so, but I invoke my main from here.
|
||||
--]]
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -190,4 +190,4 @@ local function main(args)
|
|||
end
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -272,4 +272,4 @@ local function main(args)
|
|||
print('mfkeys - Total execution time: '..os.difftime(end_time, start_time)..' sec')
|
||||
end
|
||||
|
||||
main( args)
|
||||
main( args)
|
||||
|
|
|
@ -244,4 +244,4 @@ local function main( args)
|
|||
prlog(string.format("Dumped data into %s", filename))
|
||||
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -380,4 +380,4 @@ local function main(args)
|
|||
write_tag(uid, t)
|
||||
end
|
||||
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -42,4 +42,4 @@ In the future, we may implement so that scripts are invoked directly
|
|||
into a 'main' function, instead of being executed blindly. For future
|
||||
compatibility, I have done so, but I invoke my main from here.
|
||||
--]]
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -137,4 +137,4 @@ local function main(args)
|
|||
test()
|
||||
print( string.rep('--',20) )
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -137,4 +137,4 @@ local function main(args)
|
|||
test(7)
|
||||
print( string.rep('--',20) )
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -282,4 +282,4 @@ local function main(args)
|
|||
|
||||
core.clearCommandBuffer()
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -486,4 +486,4 @@ local function main(args)
|
|||
print('The simulation is now prepared.\n --> run \"hf mf sim u '..uid..'\" <--')
|
||||
end
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -123,4 +123,4 @@ local function main(args)
|
|||
print( string.rep('--',20) )
|
||||
|
||||
end
|
||||
main(args)
|
||||
main(args)
|
||||
|
|
|
@ -173,4 +173,4 @@ if "--test"==args then
|
|||
else
|
||||
-- Call the main
|
||||
main(args)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -873,4 +873,4 @@ extern char *strmcopy(char *buf) {
|
|||
strcpy(str, buf);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -263,4 +263,4 @@ extern bool str_startswith(const char *s, const char *pre); // check for prefi
|
|||
extern void strcleanrn(char *buf, size_t len);
|
||||
extern void strcreplace(char *buf, size_t len, char from, char to);
|
||||
extern char *strmcopy(char *buf);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -16,4 +16,4 @@ void enableAppNap();
|
|||
void makeUnfocusable();
|
||||
void makeFocusable();
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -21,4 +21,4 @@ typedef struct bucket_info {
|
|||
void bucket_sort_intersect(uint32_t *const estart, uint32_t *const estop,
|
||||
uint32_t *const ostart, uint32_t *const ostop,
|
||||
bucket_info_t *bucket_info, bucket_array_t bucket);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -61,4 +61,4 @@ uint8_t cmd_send(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, void
|
|||
#endif
|
||||
|
||||
return sendlen;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,4 +123,4 @@ uint32_t CRC8Legic(uint8_t *buff, size_t size) {
|
|||
for (int i = 0; i < size; ++i)
|
||||
crc_update2(&crc, buff[i], 8);
|
||||
return reflect8(crc_finish(&crc));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,4 +67,4 @@ void reset_table(void);
|
|||
void generate_table(uint16_t polynomial, bool refin);
|
||||
uint16_t crc16_fast(uint8_t const *d, size_t n, uint16_t initval, bool refin, bool refout);
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -29,4 +29,4 @@ void crc32_ex(const uint8_t *data, const size_t len, uint8_t *crc) {
|
|||
|
||||
void crc32_append(uint8_t *data, const size_t len) {
|
||||
crc32_ex(data, len, data + len);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,4 +80,4 @@ void crc64(const uint8_t *data, const size_t len, uint64_t *crc) {
|
|||
}
|
||||
}
|
||||
|
||||
//suint8_t x = (c & 0xFF00000000000000 ) >> 56;
|
||||
//suint8_t x = (c & 0xFF00000000000000 ) >> 56;
|
||||
|
|
|
@ -48,4 +48,4 @@ void SmartCardUpgrade(uint64_t arg0);
|
|||
void SmartCardSetBaud(uint64_t arg0);
|
||||
void SmartCardSetClock(uint64_t arg0);
|
||||
void I2C_print_status(void);
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -22,4 +22,4 @@ char *Iso15693sprintUID(char *target, uint8_t *uid) {
|
|||
uid[3], uid[2], uid[1], uid[0]
|
||||
);
|
||||
return target;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -123,4 +123,4 @@ static const int Iso15693FrameEOF[] = {
|
|||
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -62,4 +62,4 @@ uint32_t legic_prng_get_bits(uint8_t len) {
|
|||
legic_prng_forward(1);
|
||||
}
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,4 +21,4 @@ void burtle_init_mod(prng_ctx *x, uint32_t seed);
|
|||
void burtle_init(prng_ctx *x, uint32_t seed);
|
||||
|
||||
uint32_t GetSimplePrng(uint32_t seed);
|
||||
#endif /* __PRNG_H */
|
||||
#endif /* __PRNG_H */
|
||||
|
|
|
@ -96,4 +96,4 @@ uint64_t *radixSort(uint64_t *array, uint32_t size) {
|
|||
}
|
||||
free(cpy);
|
||||
return array;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,4 +20,4 @@ typedef union {
|
|||
} rscounts_t;
|
||||
|
||||
uint64_t *radixSort(uint64_t *array, uint32_t size);
|
||||
#endif // RADIXSORT_H__
|
||||
#endif // RADIXSORT_H__
|
||||
|
|
|
@ -18,4 +18,4 @@
|
|||
void fast_prand();
|
||||
void fast_prandEx(uint32_t seed);
|
||||
uint32_t prand();
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -15,4 +15,4 @@
|
|||
#include <stddef.h>
|
||||
void tea_encrypt(uint8_t *v, uint8_t *key);
|
||||
void tea_decrypt(uint8_t *v, uint8_t *key);
|
||||
#endif /* __TEA_H */
|
||||
#endif /* __TEA_H */
|
||||
|
|
|
@ -140,4 +140,4 @@ void usart_init(void) {
|
|||
|
||||
// re-enable receiver / transmitter
|
||||
pUS1->US_CR = (AT91C_US_RXEN | AT91C_US_TXEN);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -949,4 +949,4 @@ void AT91F_CDC_Enumerate() {
|
|||
AT91F_USB_SendStall(pUdp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -236,4 +236,4 @@ void num_to_wiegand_bits(uint64_t oem, uint64_t fc, uint64_t cn, uint8_t *dest,
|
|||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue