3f6c15c656
Making changes to use cpp backend generated by aidl_interface build system for KeyAttestationApplicationProvider. Removed custom parcelables defined for AAID. Updated the tests to use the aidl_interface generated bindings. Bug: 267452060 Test: atest android.keystore.cts.KeyAttestationTest; atest keystore_unit_tests; keystoreSignature_fuzzer; keystorePackageInfo_fuzzer; keystoreApplicationId_fuzzer; keystoreAttestationId_fuzzer Change-Id: Ibdfb8e2837538d01a04b6771b1a71c38529d1307
104 lines
2.3 KiB
Text
104 lines
2.3 KiB
Text
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "system_security_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
// SPDX-license-identifier-BSD
|
|
default_applicable_licenses: ["system_security_license"],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "keystore_defaults",
|
|
|
|
cflags: [
|
|
"-Wall",
|
|
"-Werror",
|
|
"-Wextra",
|
|
"-Wunused",
|
|
],
|
|
|
|
sanitize: {
|
|
misc_undefined: [
|
|
"signed-integer-overflow",
|
|
"unsigned-integer-overflow",
|
|
"shift",
|
|
"integer-divide-by-zero",
|
|
"implicit-unsigned-integer-truncation",
|
|
// BUG: 123630767
|
|
//"implicit-signed-integer-truncation",
|
|
"implicit-integer-sign-change",
|
|
],
|
|
},
|
|
|
|
}
|
|
|
|
cc_binary {
|
|
name: "keystore_cli_v2",
|
|
defaults: [
|
|
"keystore_defaults",
|
|
"keystore2_use_latest_aidl_ndk_shared",
|
|
],
|
|
|
|
cflags: [
|
|
"-DKEYMASTER_NAME_TAGS",
|
|
"-Wno-unused-parameter",
|
|
],
|
|
srcs: [
|
|
"keystore_cli_v2.cpp",
|
|
"keystore_client.proto",
|
|
],
|
|
shared_libs: [
|
|
"android.security.apc-ndk",
|
|
"libbinder",
|
|
"libbinder_ndk",
|
|
"libchrome",
|
|
"libcrypto",
|
|
"libkeymint_support",
|
|
"libprotobuf-cpp-lite",
|
|
"libutils",
|
|
],
|
|
|
|
local_include_dirs: ["include"],
|
|
}
|
|
|
|
// Library used by both keystore and credstore for generating the ASN.1 stored
|
|
// in Tag::ATTESTATION_APPLICATION_ID
|
|
cc_library {
|
|
name: "libkeystore-attestation-application-id",
|
|
defaults: ["keystore_defaults"],
|
|
|
|
srcs: [
|
|
"keystore_attestation_id.cpp",
|
|
],
|
|
shared_libs: [
|
|
"android.security.aaid_aidl-cpp",
|
|
"libbase",
|
|
"libbinder",
|
|
"libcrypto",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
}
|
|
|
|
// Library for keystore clients using the WiFi HIDL interface
|
|
cc_library {
|
|
name: "libkeystore-wifi-hidl",
|
|
defaults: ["keystore_defaults"],
|
|
|
|
srcs: ["keystore_get_wifi_hidl.cpp"],
|
|
shared_libs: [
|
|
"android.system.wifi.keystore@1.0",
|
|
"libbase",
|
|
"libhidlbase",
|
|
"liblog",
|
|
"libutils",
|
|
],
|
|
|
|
export_include_dirs: ["include"],
|
|
|
|
vendor: true,
|
|
}
|