mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
prepare libamiibo.a inclusion
This commit is contained in:
parent
f7f80a9b9f
commit
bccb9069f9
7 changed files with 42 additions and 11 deletions
|
@ -19,7 +19,7 @@ void nfc3d_keygen_prepare_seed(const nfc3d_keygen_masterkeys *baseKeys, const ui
|
|||
uint8_t *start = output;
|
||||
|
||||
// 1: Copy whole type string
|
||||
output = memccpy(output, baseKeys->typeString, '\0', sizeof(baseKeys->typeString));
|
||||
output = (uint8_t *)strcpy((char *)output, baseKeys->typeString);
|
||||
|
||||
// 2: Append (16 - magicBytesSize) from the input seed
|
||||
size_t leadingSeedBytes = 16 - baseKeys->magicBytesSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue