Commit 394b4bf7 authored by Thomas Guillem's avatar Thomas Guillem

keystore/file: encrypt/decrypt password via AndroidKeyStore

This works only on Android M, the used cipher is AES/CBC/PKCS7Padding, the IV
(Initialisation Vector) is generated by Android, and the key is stored by
Android.
parent 4df30d8a
......@@ -7,6 +7,9 @@ keystore_LTLIBRARIES = libmemory_keystore_plugin.la
libfile_keystore_plugin_la_SOURCES = keystore/file.c \
keystore/file_crypt.h \
keystore/list_util.c keystore/list_util.h
if HAVE_ANDROID
libfile_keystore_plugin_la_SOURCES += keystore/file_crypt_android.c
endif
keystore_LTLIBRARIES += libfile_keystore_plugin.la
libsecret_plugin_la_SOURCES = keystore/secret.c
......
......@@ -18,13 +18,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#if 0
#if defined(__ANDROID__) || defined(_WIN32)
#if defined(__ANDROID__) /* TODO || defined(_WIN32) */
# define CRYPTFILE
#endif
#endif
#ifdef CRYPTFILE
struct crypt
{
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment