Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
efikeygen: Account for the signature size in bundle_signature()
In ea7a2c4, when bundling the signature, the bitstring type field is being set manually with a hacky offset. That offset is only valid with specific signature types, and so with any signature of a different size, this is just corrupting data either in the signature or after it. This change from Egor fixes the egregious hack to manually set the type so that it computes the location based on the signature length, rather than hard-coding a value. Signed-off-by: Peter Jones <[email protected]>
- Loading branch information