summaryrefslogtreecommitdiffstats
path: root/crypto/lollipop/main.c
diff options
context:
space:
mode:
authorDees Troy <dees_troy@teamw.in>2015-01-16 23:48:47 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-05-15 17:52:46 +0200
commitc657cc00374f2dc397e60cd249d64f745edb056d (patch)
tree451e7a4266400f61271a357b3d6b5f351825a6a8 /crypto/lollipop/main.c
parentAdd option to use new heap_id_mask instead of old heap_mask (diff)
downloadandroid_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.gz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.bz2
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.lz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.xz
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.tar.zst
android_bootable_recovery-c657cc00374f2dc397e60cd249d64f745edb056d.zip
Diffstat (limited to 'crypto/lollipop/main.c')
-rw-r--r--crypto/lollipop/main.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/crypto/lollipop/main.c b/crypto/lollipop/main.c
new file mode 100644
index 000000000..4edec861b
--- /dev/null
+++ b/crypto/lollipop/main.c
@@ -0,0 +1,35 @@
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <linux/types.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <fcntl.h>
+#include <inttypes.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <sys/ioctl.h>
+#include <linux/dm-ioctl.h>
+#include <libgen.h>
+#include <stdlib.h>
+#include <sys/param.h>
+#include <string.h>
+#include <sys/mount.h>
+#include <openssl/evp.h>
+#include <errno.h>
+#include <linux/kdev_t.h>
+#include <time.h>
+#include "cryptfs.h"
+#include "cutils/properties.h"
+#include "crypto_scrypt.h"
+#include <hardware/keymaster.h>
+
+int main() {
+ printf("blah\n");
+ set_partition_data("/dev/block/mmcblk0p28", "/dev/block/mmcblk0p27", "ext4");
+ printf("blah2\n");
+ int ret = cryptfs_check_passwd("30303030");
+ //int ret = cryptfs_check_passwd("0000");
+ return 0;
+}