We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 109b943 commit 52f5a5eCopy full SHA for 52f5a5e
app/target.cpp
@@ -106,18 +106,16 @@ static bool valid_application() {
106
107
int target_empty_keys() {
108
unsigned int i;
109
- extern const unsigned char enc_priv_key[];
110
- extern const unsigned int enc_priv_key_len;
111
- extern const unsigned char ecdsa_pub_key[];
112
- extern unsigned int ecdsa_pub_key_len;
+ uint8_t* encript_key = (uint8_t*)(0x08000300);
+ uint8_t* signing_key = (uint8_t*)(0x08000400);
113
114
- for(i = 0; i < enc_priv_key_len; i++) {
115
- if(enc_priv_key[i] != 0xFF)
+ for(i = 0; i < 256; i++) {
+ if(encript_key[i] != 0xFF)
116
return 0;
117
}
118
119
- for(i = 0; i < ecdsa_pub_key_len; i++) {
120
- if(ecdsa_pub_key[i] != 0xFF)
+ if(signing_key[i] != 0xFF)
121
122
123
0 commit comments