Tool/software:
I have a question regarding the zero-padding of encrypted binaries for secure boot, as outlined in the TISCI documentation. The System Firmware Encryption Extension does not provide information about the number of padding bytes added, and the imageSize
field of the System Firmware Image Integrity Extension accounts for the total length of the encrypted binary, padding included.
Upon decryption, how does the System Firmware remove the padding? While padding schemes like PKCS#7 offer a clear method to determine the padding length, this is not the case with plain zero-byte padding.
Thank you for your help!