1 #ifndef ANDROID_SYSTEM_WIFI_KEYSTORE_V1_0_KEYSTORE_H 2 #define ANDROID_SYSTEM_WIFI_KEYSTORE_V1_0_KEYSTORE_H 3 4 #include <android/system/wifi/keystore/1.0/IKeystore.h> 5 #include <hidl/MQDescriptor.h> 6 #include <hidl/Status.h> 7 8 #include <binder/IServiceManager.h> 9 10 namespace android { 11 namespace system { 12 namespace wifi { 13 namespace keystore { 14 namespace V1_0 { 15 namespace implementation { 16 17 using ::android::hidl::base::V1_0::DebugInfo; 18 using ::android::hidl::base::V1_0::IBase; 19 using ::android::hardware::hidl_array; 20 using ::android::hardware::hidl_memory; 21 using ::android::hardware::hidl_string; 22 using ::android::hardware::hidl_vec; 23 using ::android::hardware::Return; 24 using ::android::hardware::Void; 25 using ::android::sp; 26 using ::android::system::wifi::keystore::V1_0::IKeystore; 27 28 struct Keystore : public IKeystore { 29 public: 30 // Methods from ::android::hardware::wifi::keystore::V1_0::IKeystore follow. 31 Return<void> getBlob(const hidl_string& key, getBlob_cb _hidl_cb) override; 32 Return<void> getPublicKey( 33 const hidl_string& keyId, getPublicKey_cb _hidl_cb) override; 34 Return<void> sign( 35 const hidl_string& keyId, const hidl_vec<uint8_t>& dataToSign, 36 sign_cb _hidl_cb) override; 37 }; 38 39 extern "C" IKeystore* HIDL_FETCH_IKeystore(const char* name); 40 41 } // namespace implementation 42 } // namespace V1_0 43 } // namespace keystore 44 } // namespace wifi 45 } // namespace system 46 } // namespace android 47 48 #endif // ANDROID_SYSTEM_WIFI_KEYSTORE_V1_0_KEYSTORE_H 49