9elements / converged-security-suite

Converged Security Suite for Intel & AMD platform security features
https://www.9esec.io
BSD 3-Clause "New" or "Revised" License
56 stars 15 forks source link

feat(pkg/uefi): Add a field to adjust the offset #335

Closed xaionaro closed 1 year ago

xaionaro commented 2 years ago

Sometimes it is required to do calculations relatively to specific region or volume. But when we parse an UEFI image a component stores the offset inside and we want to avoid reparsing an image (it is expensive). So we add this hack which adjusts offsets without reparsing the image.