bmaptool: start using sha256 when creating bmap file
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 16 Sep 2013 11:47:06 +0000 (14:47 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 17 Sep 2013 12:10:36 +0000 (15:10 +0300)
Switch from using SHA1 to SHA256 for the 'bmaptool create' command.

Basically, this is what the Fedora community requested, with a reference to
this:

http://csrc.nist.gov/groups/ST/hash/policy_2006.html

Change-Id: I3facbd8d5588903b1d7d28eac77d147d0390a1c4
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptool

index bcc0b6b..6236810 100755 (executable)
--- a/bmaptool
+++ b/bmaptool
@@ -313,7 +313,7 @@ def create_command(args, log):
             raise SystemExit(1)
 
     try:
-        creator = BmapCreate.BmapCreate(args.image, output)
+        creator = BmapCreate.BmapCreate(args.image, output, "sha256")
         creator.generate(not args.no_checksum)
     except BmapCreate.Error as err:
         log.error(str(err))