fix xiaomi pack algo

This commit is contained in:
iceman1001 2022-01-23 14:38:42 +01:00
commit b9bc5f7a38
3 changed files with 10 additions and 2 deletions

View file

@ -202,6 +202,13 @@ uint16_t ul_ev1_packgenD(const uint8_t *uid) {
return BSWAP_16(p & 0xFFFF);
}
uint16_t ul_ev1_packgenE(const uint8_t *uid) {
uint32_t pwd = ul_ev1_pwdgenE(uid);
return (0xAD << 8 | ((pwd >> 24) & 0xFF) );
}
// default shims
uint32_t ul_ev1_pwdgen_def(const uint8_t *uid) {
return 0xFFFFFFFF;