summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* cryptfs_hw: Support devices use metadata as keylineage-16.0refs/changes/44/243744/5Erfan Abdi2019-06-162-0/+7
| | | | | | | | | | | | | | | | * This fixes FDE devices which uses metadata partition as encryption key. Errors: > Logcat: E Cryptfs_hw: Error::ioctl call to create encryption key for usage 1 failed with ret = -1, errno = 14 > Dmesg: scm_call failed: func id 0x72000504, ret: -2, syscall returns: 0xfffffffffffffffc, 0x0, 0x0 QSEECOM: __qseecom_set_clear_ce_key: scm call to set QSEOS_PIPE_ENC key failed : -22 QSEECOM: qseecom_wipe_key: Failed to wipe key: pipe 2, ce 0: -14 QSEECOM: qseecom_ioctl: failed to wipe encryption key: -14 Test: Boot griffin with encrypted data Signed-off-by: Erfan Abdi <erfangplus@gmail.com> Change-Id: Id7a6474fe7fe46e0d4e4ebb3b24e1ba940971df4
* cryptfs_hw: Cleanup should_use_keymasterrefs/changes/32/243032/1Michael Bestas2019-03-021-15/+4
| | | | | | * Remove duplicated logic Change-Id: I7a644b2bb7954c9491d6111b3d9614fd9d6ac64b
* Merge tag 'LA.UM.7.3.r1-06900-sdm845.0' into HEADrefs/changes/09/242609/2Bruno Martins2019-02-271-6/+23
|\ | | | | | | | | | | "LA.UM.7.3.r1-06900-sdm845.0" Change-Id: Idf4ae8df47c7fa655ad424f86df63fde843ddb27
| * Merge 5f57639048bd30e2ab5e10f31c9e8ccb4249a1da on remote branchrefs/changes/08/242608/1Linux Build Service Account2018-12-101-1/+8
| |\ | | | | | | | | | Change-Id: Ie123a3a9f2b2de857eef26135cfc5c66efbc7656
| | * cryptfs_hw: Choose keymaster version for key signingrefs/changes/07/242607/1Neeraj Soni2018-10-231-1/+8
| | | | | | | | | | | | | | | | | | | | | Keymaster key signing support is available from version 1.0 and above. Thus, version 0.3 is excluded on supported targets. Change-Id: I0cd6455bc5d2459231cb56baf68e57073fe60d69
| * | Merge 07f77ac64f3fb1bfe1bc4213f5add34b5bfb9dac on remote branchrefs/changes/06/242606/1Linux Build Service Account2018-10-081-0/+14
| |\ \ | | |/ | | | | | | Change-Id: I2d591d8deb1994aaa54bad5f70445bcca7fe099c
| | * cryptfs_hw: Add a workaround for metadata encryptionrefs/changes/05/242605/1Shivaprasad Hongal2018-08-301-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a workaround for is_ice_enabled to return 0 if the metadata partition is present to support metadata encryption. This is because HW FDE is a compile time flag and would go on to encrypt the whole disk even for metadata encryption if this does not return 0. Hence, checking for metadata partition. Change-Id: I0b08aaf4fbe5b15acb3e8963e16e75b9ad515d09 Signed-off-by: Shivaprasad Hongal <shongal@codeaurora.org>
| * | Merge 7cc34529cd52b1522ed60497437851758312c066 on remote branchrefs/changes/04/242604/1Linux Build Service Account2018-07-100-0/+0
| |\ \ | | |/ | | | | | | Change-Id: I6e5cc1496341a777a7ecf49567d06963be0391bc
| * | cryptfs: Allow vold to set encryption inforefs/changes/03/242603/1AnilKumar Chimata2018-06-212-0/+28
| | | | | | | | | | | | | | | | | | | | | Vold needs to set partition and ICE specific data before encryption starts. Change-Id: Ie721f35d7f5cbb486d1d3895e42f992fe4bc51bf
| * | Merge 36017216cce7d7fdf9c2b2eacc9835fd2d0f6d21 on remote branchrefs/changes/02/242602/1Linux Build Service Account2018-06-193-42/+29
| |\ \ | | | | | | | | | | | | Change-Id: Ia34587d3fac131f691182268fd2971edb00c8cd2
* | | | cryptfs_hw: Fix build warningsrefs/changes/40/237840/1Michael Bestas2019-01-031-19/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Mark unused parameter * Remove unused function Change-Id: I6478ad50a1c1f021a3429bb263b9a670925f5423
* | | | cryptfs_hw: Featurize support for waiting on QSEE to startrefs/changes/29/226129/10Michael Bestas2019-01-032-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | * Match keymaster change to support older blobs Change-Id: I2d45fe60e0f4bf076d064d6c432740af0b3c840c
* | | | cryptfs_hw: Add compatibility for pre-O hw cryptorefs/changes/28/226128/9Michael Bestas2019-01-032-14/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Restore compatibility for pre-O way of hw crypto interaction with qsee as the new way is not compatible with old blobs. * Old blobs and current OSS keymaster still use the old property to check if qseecomd is loaded. * This conditionally reverts: cryptfs_hw: Add new APIs for key management 84ac4882d6feeceb24e983a4eaba1d148c2ba3e6 cryptfs_hw: Use HW keymaster for FDE keys a5d3a02eb13362490222ac2a7eefde6543546e31 cryptfs_hw: Update listener status flag eec7d0b6d8e690ebe268965e89593812d607b3a8 Change-Id: I9a5db406c16c3610237a1b85fbfab5c0d63e4960
* | | | cryptfs_hw: Remove unused variablerefs/changes/03/226403/8Michael Bestas2018-12-301-1/+0
| | | | | | | | | | | | | | | | Change-Id: I79333c3fac7391441ab391f7e850bb7bc904caf2
* | | | cryptfs_hw: add missing logging tagrefs/changes/30/226130/7steadfasterX2018-12-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iba69c6feb976cab2e466d30241f899540eff4b51 cryptfs_hw: Properly define log tag * LOG_TAG should be defined before including log.h vendor/qcom/opensource/cryptfs_hw/cryptfs_hw.c:45:9: warning: 'LOG_TAG' macro redefined [-Wmacro-redefined] ^ system/core/liblog/include/log/log.h:51:9: note: previous definition is here Change-Id: Id6fdf6f1582360514de9140bd42feaa698527557
* | | | cryptfs_hw: Use generated kernel headersrefs/changes/71/230271/2Michael Bestas2018-10-201-1/+1
| |_|/ |/| | | | | | | | Change-Id: Idd29b74c131d37da1b1f6fec63a34f4a63727b97
* | | cryptfs: Allow vold to set encryption infoAnilKumar Chimata2018-06-202-0/+28
| |/ |/| | | | | | | | | | | Vold needs to set partition and ICE specific data before encryption starts. Change-Id: Ie721f35d7f5cbb486d1d3895e42f992fe4bc51bf
* | cryptfs_hw: Update Android make fileAnilKumar Chimata2018-06-053-41/+28
| | | | | | | | | | | | Move Android.mk to Androi.bp file as per new changes. Change-Id: I9b4422f736ee51f264eac5b84297c66d76f4f243
* | cryptfs_hw: Update listener status flagAnilKumar Chimata2018-06-041-1/+1
|/ | | | | | | Update listeners load status flag name as per new requirement. Change-Id: Ifcd402e3fb31e184356f8e4ca21f00093b58eafd
* Relocation of cryptfs_hw module from device/qcom/commonDavid Ng2018-05-244-0/+497
| | | | | | | | | Project restructuring for single system image. Relocation of some files from device/qcom/common at b5ce80cb1f60759a142a9338104d3adf3303ec0c. Change-Id: Iae4304c09859918c130c6798cd3e59a3728e2ea5
* Initial commitLinux Build Service Account2018-05-220-0/+0