From ffac601022891c0107e1a002337f27014994266c Mon Sep 17 00:00:00 2001 From: merlokk Date: Tue, 23 Jan 2018 18:31:00 +0200 Subject: [PATCH] small refactoring --- client/mifarehost.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/mifarehost.c b/client/mifarehost.c index 20c274a2..02afe75e 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -845,13 +845,10 @@ int mfTraceDecode(uint8_t *data_src, int len, bool wantSaveToEmlFile) { lfsr_rollback_word(revstate, uid ^ nt, 0); crypto1_get_lfsr(revstate, &lfsr); - printf("key> %x%x\n", (unsigned int)((lfsr & 0xFFFFFFFF00000000) >> 32), (unsigned int)(lfsr & 0xFFFFFFFF)); + printf("key> %x%x Prng:%s\n", + (unsigned int)((lfsr & 0xFFFFFFFF00000000) >> 32), (unsigned int)(lfsr & 0xFFFFFFFF), + validate_prng_nonce(nt) ? "WEAK": "HARDEND"); AddLogUint64(logHexFileName, "key> ", lfsr); - if (validate_prng_nonce(nt)) { - printf("key> Prng: WEAK\n"); - } else { - printf("key> Prng: HARDEND\n"); - } } else { if (validate_prng_nonce(nt)) {