summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-17 14:53:06 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-08 11:16:03 +0000
commitf008c24dab14fcea7d0ff1c650255c8ea7126d43 (patch)
tree2bcbc39c4008a2679aff630ec20c94873821d869 /bitbake/lib/bb/data_smart.py
parent941c5ddd191993fe18aba5796e397f6244fa80eb (diff)
downloadpoky-f008c24dab14fcea7d0ff1c650255c8ea7126d43.tar.gz
bitbake: data/siggen: Switch md5 -> sha256
Similarly to the codeparser change, change to sha256 hashes due to worries over collisions. The main impact of this change is slightly slower parsing time as well as longer sstate file names. (Bitbake rev: 66f1b766997d53b4375fdd25719b1175f3828903) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data_smart.py')
-rw-r--r--bitbake/lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py
index c342adaa0a..1f45cd975d 100644
--- a/bitbake/lib/bb/data_smart.py
+++ b/bitbake/lib/bb/data_smart.py
@@ -1074,4 +1074,4 @@ class DataSmart(MutableMapping):
1074 data.update({i:value}) 1074 data.update({i:value})
1075 1075
1076 data_str = str([(k, data[k]) for k in sorted(data.keys())]) 1076 data_str = str([(k, data[k]) for k in sorted(data.keys())])
1077 return hashlib.md5(data_str.encode("utf-8")).hexdigest() 1077 return hashlib.sha256(data_str.encode("utf-8")).hexdigest()