Lines Matching refs:sha_algo
56 def run_bootm(sha_algo, test_type, expect_string, boots): argument
71 with cons.log.section('Verified boot %s %s' % (sha_algo, test_type)):
91 def sign_fit(sha_algo): argument
101 cons.log.action('%s: Sign images' % sha_algo)
105 def test_with_algo(sha_algo): argument
122 cons.log.action('%s: Test FIT with signed images' % sha_algo)
123 make_fit('sign-images-%s.its' % sha_algo)
124 run_bootm(sha_algo, 'unsigned images', 'dev-', True)
127 sign_fit(sha_algo)
128 run_bootm(sha_algo, 'signed images', 'dev+', True)
133 cons.log.action('%s: Test FIT with signed configuration' % sha_algo)
134 make_fit('sign-configs-%s.its' % sha_algo)
135 run_bootm(sha_algo, 'unsigned config', '%s+ OK' % sha_algo, True)
138 sign_fit(sha_algo)
139 run_bootm(sha_algo, 'signed config', 'dev+', True)
141 cons.log.action('%s: Check signed config on the host' % sha_algo)
156 run_bootm(sha_algo, 'Signed config with bad hash', 'Bad Data Hash', False)
158 cons.log.action('%s: Check bad config on the host' % sha_algo)