BmapCreate: implement arbitrary hash type support
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Mon, 16 Sep 2013 10:35:44 +0000 (13:35 +0300)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 17 Sep 2013 12:10:26 +0000 (15:10 +0300)
commitd737a7039798bbf5b8f0b7684e642bcd94c67965
treef44d61bf402239ca0248bdb283dd69692a96a2a4
parent07e53739f2acbb95a7f652e870fb7c7066591df5
BmapCreate: implement arbitrary hash type support

Instead of just supporting SHA1 hash functions type, support arbitrary hash
function type. Well, actually "arbitrary" means any hash function supported by
the "hashlib" python module.

In particular, we are interested to switch from SHA1 to SHA256.

Unfortunately, this is a format change, since format version 1.3 guaranteed
that checksum is always SHA1. This is why this patch also increases the format
version to 1.4.

Change-Id: I096b47d6e4a413368d42e40ce8ebb06f612619c5
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
bmaptools/BmapCreate.py