mirror of
https://github.com/Jimmy-Z/TWLbf.git
synced 2025-06-18 18:55:31 -04:00
trivial
This commit is contained in:
parent
6d1becd014
commit
ffd261f855
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ mbedtls/aesni.h
|
||||
mbedtls/sha1.h
|
||||
mbedtls/version.h
|
||||
twlbf_*
|
||||
|
||||
|
1
Makefile
1
Makefile
@ -13,3 +13,4 @@ $(PNAME)_mbedtls: $(OBJS) $(MBEDTLS_OBJS) crypto_mbedtls.o
|
||||
|
||||
clean:
|
||||
rm $(PNAME)_* *.o
|
||||
|
||||
|
@ -91,3 +91,4 @@ I'm not sure.
|
||||
### Thanks:
|
||||
- Martin Korth for [GBATEK](http://problemkaputt.de/gbatek.htm)
|
||||
- Wulfystylez/WinterMute for [TWLTool](https://github.com/WinterMute/twltool)
|
||||
|
||||
|
1
common.h
1
common.h
@ -7,3 +7,4 @@ typedef uint8_t u8;
|
||||
typedef uint16_t u16;
|
||||
typedef uint32_t u32;
|
||||
typedef uint64_t u64;
|
||||
|
||||
|
1
crypto.h
1
crypto.h
@ -12,3 +12,4 @@ void crypto_init();
|
||||
void aes_128_ecb_set_key(const u8 *key);
|
||||
void aes_128_ecb_crypt_1(u8 *out, const u8 *in);
|
||||
void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len);
|
||||
|
||||
|
@ -56,3 +56,4 @@ void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len){
|
||||
out += 16;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,3 +61,4 @@ void aes_128_ecb_crypt(u8 *out, const u8 *in, unsigned len){
|
||||
assert(EVP_EncryptUpdate(&ctx, out, &len_out, in, len) == 1);
|
||||
assert(len_out == len);
|
||||
}
|
||||
|
||||
|
1
dsi.c
1
dsi.c
@ -343,3 +343,4 @@ void dsi_brute_console_id(const u8 *console_id_template, const u8 *emmc_cid,
|
||||
double td = difftime(time(0), start);
|
||||
printf("%.2f seconds, %.2f M/s\n", td, tested / 1000000.0 / td);
|
||||
}
|
||||
|
||||
|
1
dsi.h
1
dsi.h
@ -11,3 +11,4 @@ void dsi_brute_emmc_cid(const u8 *console_id, const u8 *emmc_cid_template,
|
||||
|
||||
void dsi_brute_console_id(const u8 *console_id_template, const u8 *emmc_cid,
|
||||
const u8 *offset, const u8 *src, const u8 *verify, int bcd);
|
||||
|
||||
|
@ -10,3 +10,4 @@
|
||||
#define MBEDTLS_AESNI_C
|
||||
#define MBEDTLS_HAVE_X86_64
|
||||
#define MBEDTLS_HAVE_ASM
|
||||
|
||||
|
1
utils.c
1
utils.c
@ -56,3 +56,4 @@ const char *hexdump(const void *b, unsigned l, int space){
|
||||
}
|
||||
return hexdump_buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user