Lines Matching refs:sha
34 def update_sha(sha, f): argument
36 sha.update(f.read())
38 sha.update(pack('I', filesize(f)))
40 sha.update(pack('I', 0))
89 sha = sha1()
90 update_sha(sha, args.kernel)
91 update_sha(sha, args.ramdisk)
92 update_sha(sha, args.second)
95 update_sha(sha, args.recovery_dtbo)
97 update_sha(sha, args.dtb)
99 img_id = pack('32s', sha.digest())