sbsign: Add --detached option to create detached PKCS7 signatures

Add an option (--detached) to sbsign, which creates a detached
signature, rather than embedding it in the PE/COFF signature table.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-06-11 15:28:16 +08:00
parent f98a885cfa
commit 3c9815acc6
3 changed files with 37 additions and 3 deletions

View file

@ -81,6 +81,7 @@ int image_pecoff_parse(struct image *image);
int image_find_regions(struct image *image);
int image_hash_sha256(struct image *image, uint8_t digest[]);
int image_write_signed(struct image *image, const char *filename);
int image_write_detached(struct image *image, const char *filename);
#endif /* IMAGE_H */