mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-23 16:17:32 +01:00
Fossil Hybrid: added verbose decryption logging
This commit is contained in:
parent
c1352a7c3c
commit
8a87bd9700
@ -40,6 +40,7 @@ import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.file.FileHan
|
||||
import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.fossil.FossilRequest;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.CRC32C;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.GB;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.StringUtils;
|
||||
|
||||
public abstract class FileEncryptedGetRequest extends FossilRequest {
|
||||
private short handle;
|
||||
@ -171,6 +172,8 @@ public abstract class FileEncryptedGetRequest extends FossilRequest {
|
||||
cipher.init(Cipher.DECRYPT_MODE, keySpec, new IvParameterSpec(iv));
|
||||
byte[] result = cipher.doFinal(value);
|
||||
|
||||
log("decryption result: " + StringUtils.bytesToHex(result));
|
||||
|
||||
incrementIV();
|
||||
|
||||
fileBuffer.put(result, 1, result.length - 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user