1// Copyright 2024 The ChromiumOS Authors 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// A library for generating TPM commands and parsing TPM responses. Derived from 6// the Chromium OS trunks daemon's TPM code. 7 8cc_library { 9 name: "libtpmgenerated", 10 host_supported: true, 11 shared_libs: [ 12 "libbase", 13 "libcrypto", 14 ], 15 srcs: [ 16 "hex.cc", 17 "secure_hash.cc", 18 "tpm_generated.cc", 19 ], 20} 21 22cc_test_host { 23 name: "libtpmgenerated_test", 24 srcs: [ 25 "mock_authorization_delegate.cc", 26 "mock_command_transceiver.cc", 27 "tpm_generated_test.cc", 28 ], 29 shared_libs: [ 30 "libtpmgenerated", 31 ], 32 static_libs: [ 33 "libgmock", 34 ], 35} 36