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