summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc
diff options
context:
space:
mode:
authorAntaeus Kleinert-Strand <antklein@microsoft.com>2025-09-18 04:51:18 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-09-24 03:02:41 +0300
commit17691a2641c2715fc1196aa1b0fe85b85db6c240 (patch)
treebc74c9b8ec36bddc433ed908782fede774ac8cf0 /BaseTools/Source/Python/Ecc
parent18d053d6828ca308824bd64ddea04de789d97edb (diff)
downloadedk2-17691a2641c2715fc1196aa1b0fe85b85db6c240.tar.xz
FmpDevicePkg/FmpDxe: Improve handling of XDR certs
The current implementation for XDR certificate handling assumes the PublicKeyDataXdr buffer is 4-byte aligned. This is not always the case. For example, if PublicKeyDataXdr=0x02, and the length is 0x05, the correct offset should be 0x2 + align_up(0x5, 4) -> 0x2 + 0x8 = 0xA. The current logic produces align_up(0x2 + 0x5, 4) -> align_up(0x7, 4) = 0x8. Signed-off-by: Antaeus Kleinert-Strand <antklein@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc')
0 files changed, 0 insertions, 0 deletions