1// Copyright 2023, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19rust_fuzz {
20    name: "avb_kernel_without_footer_verify_fuzzer",
21    srcs: ["without_footer_verify_fuzzer.rs"],
22    rustlibs: [
23        "libpvmfw_avb_nostd",
24    ],
25    fuzz_config: {
26        cc: [
27            "android-kvm@google.com",
28        ],
29        fuzz_on_haiku_device: true,
30        fuzz_on_haiku_host: true,
31    },
32}
33
34rust_fuzz {
35    name: "avb_kernel_with_footer_verify_fuzzer",
36    srcs: ["with_footer_verify_fuzzer.rs"],
37    rustlibs: [
38        "libpvmfw_avb_nostd",
39        "libavb_bindgen_nostd",
40    ],
41    fuzz_config: {
42        cc: [
43            "android-kvm@google.com",
44        ],
45        fuzz_on_haiku_device: true,
46        fuzz_on_haiku_host: true,
47    },
48}
49