Skip to content

Commit

Permalink
Fix dxcc
Browse files Browse the repository at this point in the history
  • Loading branch information
bkerler committed Jul 30, 2024
1 parent 0442e82 commit aa425b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mtkclient/Library/Hardware/hwcrypto_dxcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ def generate_sha256(self, data):

def sbrom_key_derivation(self, aeskeytype, label, salt, requestedlen, destaddr):
result = bytearray()
if aeskeytype <= HwCryptoKey.PLATFORM_KEY or (1 << (aeskeytype - 1) & 0x17) == 0:
if aeskeytype > HwCryptoKey.PLATFORM_KEY or (1 << (aeskeytype - 1) & 0x17) == 0:
return 0xF2000002
if requestedlen > 0xFF or (requestedlen << 28) & 0xFFFFFFFF:
return 0xF2000003
Expand Down

0 comments on commit aa425b5

Please sign in to comment.