1 // Copyright 2020, 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 15 //! This crate implements the Android Keystore 2.0 service. 16 #![recursion_limit = "256"] 17 18 pub mod apc; 19 pub mod async_task; 20 pub mod authorization; 21 pub mod boot_level_keys; 22 pub mod database; 23 pub mod ec_crypto; 24 pub mod enforcements; 25 pub mod entropy; 26 pub mod error; 27 pub mod globals; 28 pub mod id_rotation; 29 /// Internal Representation of Key Parameter and convenience functions. 30 pub mod key_parameter; 31 pub mod legacy_blob; 32 pub mod legacy_importer; 33 pub mod maintenance; 34 pub mod metrics; 35 pub mod metrics_store; 36 pub mod operation; 37 pub mod permission; 38 pub mod raw_device; 39 pub mod remote_provisioning; 40 pub mod security_level; 41 pub mod service; 42 pub mod shared_secret_negotiation; 43 pub mod utils; 44 45 mod attestation_key_utils; 46 mod audit_log; 47 mod gc; 48 mod km_compat; 49 mod super_key; 50 mod sw_keyblob; 51 mod watchdog_helper; 52 53 use message_macro::source_location_msg as ks_err; 54