Editing ENCDEC Device Reverse Engineering
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 14: | Line 14: | ||
* HDD sectors arrive in LV1 with tweak values already XORed. | * HDD sectors arrive in LV1 with tweak values already XORed. | ||
* But VFLASH sectors are first encrypted/decrypted with ENCDEC keys and the fact is that VFLASH sectors are NOT already XORed with tweak values. LV1 does pre- and post-XORing with tweak values. | * But VFLASH sectors are first encrypted/decrypted with ENCDEC keys and the fact is that VFLASH sectors are NOT already XORed with tweak values. LV1 does pre- and post-XORing with tweak values. | ||
* LV1 allocates a DMA region where it stores | * LV1 allocates a DMA region where it stores sectors numbers for each request sector and ENCDEC encryptes these tweak values. | ||
* After that, LV1 XORes encrypted tweak values. | * After that, LV1 XORes encrypted tweak values. | ||
* See '''encdec_device_enqueue_decsec_request''' and '''EdecXTS_XorWithMask''' in LV1. | * See '''encdec_device_enqueue_decsec_request''' and '''EdecXTS_XorWithMask''' in LV1. |