mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
commit
49ccd6ae1b
2 changed files with 2 additions and 2 deletions
|
@ -5058,7 +5058,7 @@ static int CmdHF14ADesWriteData(const char *Cmd) {
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
if (readeridpushed)
|
if (readeridpushed)
|
||||||
PrintAndLogEx(INFO, "TMC and TMV[%d]: %s", resplen, sprint_hex(resp, resplen));
|
PrintAndLogEx(INFO, "TMC and TMV[%zu]: %s", resplen, sprint_hex(resp, resplen));
|
||||||
PrintAndLogEx(INFO, "Commit " _GREEN_("OK"));
|
PrintAndLogEx(INFO, "Commit " _GREEN_("OK"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -248,7 +248,7 @@ void LRPCMAC(LRPContext *ctx, uint8_t *data, size_t datalen, uint8_t *cmac) {
|
||||||
|
|
||||||
size_t bllen = datalen - clen;
|
size_t bllen = datalen - clen;
|
||||||
uint8_t bl[CRYPTO_AES128_KEY_SIZE] = {0};
|
uint8_t bl[CRYPTO_AES128_KEY_SIZE] = {0};
|
||||||
memcpy(bl, &data[clen], bllen);
|
memcpy(bl, &data[clen], MIN(bllen, CRYPTO_AES128_KEY_SIZE));
|
||||||
|
|
||||||
// last block
|
// last block
|
||||||
if (bllen == 16) {
|
if (bllen == 16) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue