xref: /aosp_15_r20/external/autotest/client/site_tests/firmware_VbootCrypto/control (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = "ChromeOS Team"
6NAME = "firmware_VbootCrypto"
7PURPOSE = """
8Verifies Firmware Verified Boot Reference Implementation, its components, and
9crypto performance.
10"""
11CRITERIA = """
12This test is a benchmark.
13
14Errors in any of the following tests will cause a failure:
15  - _sha_test()
16  - _rsa_test()
17  - _image_verification_test()
18  - _rollback_tests()
19  - _splicing_tests()
20"""
21TIME = "LONG"
22TEST_CATEGORY = "Functional"
23TEST_CLASS = "firmware"
24TEST_TYPE = "client"
25PY_VERSION = 3
26
27DOC = """
28This test implements various RSA and SHA by creating and verifying various
29keys and hashes. It will generate public key signatures using sha1, sha256,
30and sha512 algorithms with key lengths of 1024, 2048, 4096, and 8192. RSA
31padding tests will then be run to verify them. Tests are also run to verify
32the correctness of firmware and kernel image verification.
33"""
34
35test_suites = [
36    'crypto',  # RSA Signature Verification and SHA* Correctness.
37    'verification',  # Firmware and Kernel Image Verification.
38    'benchmarks',  # Crypto and Image Verification benchmarks.
39    'rollback',  # Firmware/Kernel Rollback Prevention.
40    'splicing',  # Image Splicing Attack.
41]
42for suite in test_suites:
43  job.run_test('firmware_VbootCrypto', suite=suite, tag=suite)
44