summaryrefslogtreecommitdiff
path: root/libfscrypt/tests
AgeCommit message (Collapse)Author
2023-03-03fscrypt_test: add test for parsing of "aes-256-hctr2"Eric Biggers
Bug: 233652475 Test: atest libfscrypt_unit_test Change-Id: I20a7422c5429bf29e07571381f722239744b5537
2021-02-19[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: alloc-stress/Android.bp app-launcher/Android.bp boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp brillo_config/Android.mk checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioblame/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp partition_tools/aidl/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp pssbench/Android.mk puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp zram-perf/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
2021-02-16Revert "[LSC] Add LOCAL_LICENSE_KINDS to system/extras"Bob Badour
This reverts commit 044d055c842a5750359ed71dfe50a6a4bf5f4cc3. Reason for revert: Needs to run as multiple roots. Change-Id: I8e06e7eb19e0f634f52fbd8a1c6662f43e347dd5
2021-02-12[LSC] Add LOCAL_LICENSE_KINDS to system/extrasBob Badour
Added SPDX-license-identifier-Apache-2.0 to: boot_control_copy/Android.bp bootctl/Android.bp boottime_tools/bootanalyze/stressfs/Android.bp boottime_tools/bootio/Android.bp checkpoint_gc/Android.bp cppreopts/Android.bp crypto-perf/Android.bp ext4_utils/Android.bp ext4_utils/Android.mk f2fs_utils/Android.bp ioshark/Android.bp iotop/Android.bp kexec_tools/Android.bp latencytop/Android.bp libfec/Android.bp libfec/test/Android.bp libfscrypt/Android.bp libfscrypt/tests/Android.bp libjsonpb/parse/Android.bp libjsonpb/verify/Android.bp memory_replay/Android.bp memtrack/Android.bp mmap-perf/Android.bp module_ndk_libs/libnativehelper/Android.bp multinetwork/Android.bp pagecache/Android.bp partition_tools/Android.bp perf2cfg/Android.bp postinst/Android.bp preopt2cachename/Android.bp profcollectd/Android.bp profcollectd/libprofcollectd/Android.bp profcollectd/libprofcollectd/bindings/libflags/Android.bp puncture_fs/Android.bp runconuid/Android.bp sane_schedstat/Android.bp showslab/Android.bp simpleperf/Android.bp simpleperf/runtest/Android.bp simpleperf/scripts/inferno/Android.bp simpleperf/simpleperf_app_runner/Android.bp slideshow/Android.mk sound/Android.bp squashfs_utils/Android.bp su/Android.mk taskstats/Android.bp tests/Android.bp tests/audio/alsa/Android.bp tests/binder/benchmarks/Android.bp tests/bootloader/Android.mk tests/cpueater/Android.bp tests/crypto/Android.bp tests/directiotest/Android.bp tests/ext4/Android.mk tests/framebuffer/Android.bp tests/fstest/Android.bp tests/icachetest/Android.bp tests/iptables/qtaguid/Android.bp tests/kernel.config/Android.mk tests/lib/Android.bp tests/lib/testUtil/Android.bp tests/memeater/Android.mk tests/pagingtest/Android.mk tests/pftest/Android.bp tests/schedtest/Android.bp tests/storage/Android.bp tests/suspend_stress/Android.bp tests/tcp_nuke_addr/Android.bp tests/timetest/Android.bp tests/uevents/Android.bp toolchain-extras/Android.bp vbmeta_tools/Android.bp verity/Android.bp verity/fec/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to: cpustats/Android.bp Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_notice to: Android.bp Added SPDX-license-identifier-BSD to: ANRdaemon/Android.bp Added legacy_notice to: alloc-stress/Android.bp app-launcher/Android.bp brillo_config/Android.mk ioblame/Android.bp partition_tools/aidl/Android.bp pssbench/Android.mk zram-perf/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: Ie7c022a4d7f828a89d0cda663684a497af37006e
2020-10-26libfscrypt: format filesThiƩbaud Weksteen
Format *.cpp according to the new .clang-format. The following command was used to generate this change: $ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Bug: 171699326 Change-Id: Id7bc8b74fc6cb5156770210271abb86b0e156089
2020-05-21Add emmc_optimized flagPaul Crowley
Bug: 144046242 Test: atest libfscrypt_unit_test Test: Change fstab on Cuttlefish with patched kernel, check dir policy Change-Id: I362f9a55fa28bb25afe992c8b0bae48546fc9ab0
2020-03-04libfscrypt: Add == and != operators for EncryptionPolicy/OptionsNikita Ioffe
Test: atest libfscrypt_unit_test Bug: 143970043 Change-Id: Ibb8ee68513d4f04c1a64773768cc5ded9f7425ca Merged-In: Ibb8ee68513d4f04c1a64773768cc5ded9f7425ca (cherry picked from commit e6e61f778c409b08b2799c5281b5db74325bc801)
2020-02-19fscrypt option parsing depends on ro.product.first_api_levelPaul Crowley
We'd like to change what the defaults are for fscrypt as we get new and better things, but we don't want to break old devices. So we arrange for the behavior to depend on the API version the device launched with. In addition, we can now supply a default if any of the three fields are blank, meaning that clients like get_volume_file_encryption_options don't have to separately specify defaults. Right now we use the API level to choose between version 1 and version 2 being default, and as a further guard against anyone using the deprecated FSCRYPT_POLICY_FLAGS_PAD_4 on new devices. Bug: 147107322 Test: atest fscrypt Test: Various Cuttlefish configurations Change-Id: I43c94c1051c61d2b051355dcd428c44c279a3c75
2019-12-16libfscrypt: Use <linux/fscrypt.h> from BionicEric Biggers
aosp/1184798 has updated the kernel headers to android-mainline, so we no longer need to manually declare the declarations for v2 policies, nor do we need to manually declare FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64. Also replace the FS_* constants with their new FSCRYPT_* names. This doesn't change the numerical values; it just changes the names. Test: build and 'atest libfscrypt_unit_test' Bug: None Change-Id: I03ce177923bfa9e0fecbbdbf1718fbf1c17176d9
2019-10-29libfscrypt: Export FSCRYPT_POLICY_FLAG_IV_INO_LBLK_64Paul Crowley
We need to test for this flag when deciding whether to set stable_inodes. Bug: 143307095 Test: Set inlinecrypt_optimized, check that stable_inodes is set Change-Id: Ic3245466eccd88ed2784ff4b2a348ca65085e2a4
2019-10-28libfscrypt: Support inlinecrypt_optimized flagPaul Crowley
Bug: 143307095 Test: add flag in fstab, check policy logs Change-Id: Ic80d348c2c7d56048e0e73d985f709e8d287cd9f
2019-10-28libfscrypt: Infer flags at parse time and include in options structPaul Crowley
Bug: 143307095 Test: cuttlefish, policy=v1 -> flags=0, policy=v2 -> flags=2 Change-Id: I28f35a1e0ee474d07e2e2b591c84e9057ecb6acf
2019-10-28libfscrypt: Options parser now fills missing defaultsPaul Crowley
Bug: 143307095 Test: use parser for fstab Change-Id: Ia103a2e7947d03fb50a378472203363477d865e5