diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2019-09-15 18:36:55 +0300 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-09-15 19:22:07 +0300 |
commit | 0629f6ddaaebb0055e8f0fb727044c7f5b4270f2 (patch) | |
tree | 2a56b7fd7aafb6ee03f0303e6728ee182beeca57 | |
parent | db3313255c32c4ccb74895e98e89704e46047102 (diff) | |
download | android_vendor_qcom_opensource_interfaces-0629f6ddaaebb0055e8f0fb727044c7f5b4270f2.tar.gz android_vendor_qcom_opensource_interfaces-0629f6ddaaebb0055e8f0fb727044c7f5b4270f2.tar.bz2 android_vendor_qcom_opensource_interfaces-0629f6ddaaebb0055e8f0fb727044c7f5b4270f2.zip |
Introduce vendor.qti.hardware.cryptfshw@1.0 HAL
* Clean room implementation of the new Q cryptfs_hw HAL
* Based on observing libcryptfs_hw expectations
Change-Id: I3acf0b9041279b29fee6e747364d91c86c4f541e
-rw-r--r-- | Android.bp | 5 | ||||
-rw-r--r-- | cryptfshw/1.0/Android.bp | 15 | ||||
-rw-r--r-- | cryptfshw/1.0/ICryptfsHw.hal | 24 |
3 files changed, 44 insertions, 0 deletions
@@ -7,6 +7,11 @@ hidl_package_root { } hidl_package_root { + name: "vendor.qti.hardware.cryptfshw", + path: "vendor/qcom/opensource/interfaces/cryptfshw", +} + +hidl_package_root { name: "vendor.qti.hardware.display", path: "vendor/qcom/opensource/interfaces/display", } diff --git a/cryptfshw/1.0/Android.bp b/cryptfshw/1.0/Android.bp new file mode 100644 index 0000000..4b1da00 --- /dev/null +++ b/cryptfshw/1.0/Android.bp @@ -0,0 +1,15 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.qti.hardware.cryptfshw@1.0", + root: "vendor.qti.hardware.cryptfshw", + product_specific: true, + srcs: [ + "ICryptfsHw.hal", + ], + interfaces: [ + "android.hidl.base@1.0", + ], + gen_java: true, +} + diff --git a/cryptfshw/1.0/ICryptfsHw.hal b/cryptfshw/1.0/ICryptfsHw.hal new file mode 100644 index 0000000..2d9b329 --- /dev/null +++ b/cryptfshw/1.0/ICryptfsHw.hal @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2019 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package vendor.qti.hardware.cryptfshw@1.0; + +interface ICryptfsHw { + setIceParam(uint32_t flag) generates (int32_t setIceParamRet); + setKey(string passwd, string enc_mode) generates (int32_t setKeyRet); + updateKey(string oldpw, string newpw, string enc_mode) generates (int32_t updateKeyRet); + clearKey() generates(int32_t clearKeyRet); +}; |