- Created .gitignore to exclude build artifacts and dependencies. - Added package.json and package-lock.json for project dependencies and scripts. - Included pnpm workspace configuration for managing packages. - Implemented TypeScript configuration in tsconfig.json. - Added README.md with project description and usage instructions. - Introduced native code for DES encryption and decryption in C/C++. - Created initial decoded data structure for handling scan results. - Established basic file structure for decoded outputs and native builds.
19 lines
460 B
C
19 lines
460 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void des_key_schedule(uint64_t key, uint64_t sk[16]);
|
|
uint64_t des_crypt(uint64_t block, const uint64_t sk[16], int decrypt);
|
|
uint64_t make_key(uint64_t index, uint32_t key_len, uint32_t charset_len, uint32_t pad_byte,
|
|
const uint8_t *charset);
|
|
int is_fill(uint64_t pt, const uint64_t *fills, uint32_t fill_count);
|
|
int des_selftest(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|