Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <string.h> |
| 3 | #include <sys/types.h> |
| 4 | #include <linux/types.h> |
| 5 | #include <sys/wait.h> |
| 6 | #include <sys/stat.h> |
| 7 | #include <ctype.h> |
| 8 | #include <fcntl.h> |
| 9 | #include <inttypes.h> |
| 10 | #include <unistd.h> |
| 11 | #include <stdio.h> |
| 12 | #include <sys/ioctl.h> |
| 13 | #include <linux/dm-ioctl.h> |
| 14 | #include <libgen.h> |
| 15 | #include <stdlib.h> |
| 16 | #include <sys/param.h> |
| 17 | #include <string.h> |
| 18 | #include <sys/mount.h> |
| 19 | #include <openssl/evp.h> |
| 20 | #include <errno.h> |
| 21 | #include <linux/kdev_t.h> |
| 22 | #include <time.h> |
| 23 | #include "cryptfs.h" |
| 24 | #include "cutils/properties.h" |
| 25 | #include "crypto_scrypt.h" |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 26 | |
| 27 | int main() { |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 28 | set_partition_data("/dev/block/platform/sdhci-tegra.3/by-name/UDA", "/dev/block/platform/sdhci-tegra.3/by-name/MD1", "f2fs"); |
| 29 | //int ret = cryptfs_check_passwd("30303030"); |
| 30 | int ret = cryptfs_check_passwd("0000"); |
Dees Troy | c657cc0 | 2015-01-16 22:48:47 +0000 | [diff] [blame] | 31 | return 0; |
| 32 | } |