Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions igetnonce/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ int main(int argc, const char * argv[]) {
}
info("ecid=%llx\n",client->ecid);

if (client->mode->index == MODE_NORMAL) {
error("WARNING: Getting a nonce in normal mode will overwrite the generator in NVRAM!\n");
info("Continue anyway? [y/n] : ");
char cont[2] = "n";
scanf("%c", cont);
if (strncmp(cont, "y", 1) != 0) return -1;
}

unsigned char* nonce = NULL;
int nonce_size = 0;

Expand Down