Lingxian Kong fdc96d9d9e Use HMAC.hexdigest to avoid non-ascii characters for package data
hmac.compare_digest() method in python 3 doesn't suppport non-ASCII
characters, so that we need to use HMAC.hexdigest() to avoid non-ASCII
bytes.

For backward compability, we still need to support HMAC created by
using HMAC.digest() in the old amphorae.

Change-Id: I1061e855d0ce06d91a26d217291008197e4a708b
Depends-On: https://review.openstack.org/#/c/567688/
Story: 2002125
Task: 19807
2018-06-01 08:00:20 +00:00
..
2018-03-14 07:02:56 +09:00