Skip to content

get drive certificate len issue

//if (!_mmc_report_key(mmc, 0, 0, 0, 0x38, buf, 116)) { if (!_mmc_report_key(mmc, 0, 0, 0, 0x38, buf, 96)) { if (mmc->read_drive_cert) { BD_DEBUG(DBG_MMC | DBG_CRIT, "Failed reading drive certificate\n"); } return MMC_ERROR; }

116 is more then certificate len, header say 0x5e (so 0x60 with header). OS like windows or linux autoparse it and set it to internaly 96 (0x60) but if is sent as is to the drive, the drive will lockup.