- if (hasPwd && (tagtype & UL_C)){ //UL_C
- memcpy(data + Pages*4, key, dataLen/2);
- Pages += 4;
- } else if (hasPwd) { //not sure output is in correct location.
- memcpy(data + Pages*4, key, dataLen/2);
- Pages += 1;
- }
+ // cant add swapped bytes-- ULC saves it as big endian in user memory.
+ //if (swapEndian) authkeyptr = SwapEndian64(authenticationkey, dataLen/2, (dataLen == 32) ? 8 : 4);
+
+ // if (hasAuthKey && (tagtype & UL_C)){ //UL_C
+ // memcpy(data + Pages*4, authkeyptr, dataLen/2);
+ // Pages += 4;
+ // } else if (hasAuthKey) { //not sure output is in correct location.
+ // memcpy(data + Pages*4, authkeyptr, dataLen/2);
+ // Pages += 1;
+ // }