summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2016-07-09 15:09:16 -0400
committerFranklin Wei <frankhwei536@gmail.com>2016-07-09 15:09:52 -0400
commit5fc1b86d596778cf65c844eac2d36f607c870598 (patch)
treecb72fcad3e86732217e4162afc540aaa6f68d543 /apps/plugin.h
parent2716c64cba0c0772ff9b0064a04710d999b95610 (diff)
downloadrockbox-5fc1b86d596778cf65c844eac2d36f607c870598.zip
rockbox-5fc1b86d596778cf65c844eac2d36f607c870598.tar.gz
rockbox-5fc1b86d596778cf65c844eac2d36f607c870598.tar.bz2
rockbox-5fc1b86d596778cf65c844eac2d36f607c870598.tar.xz
support static passwords, hardware-accelerated AES, SHA1
Change-Id: Iacb1ac768741f40a7b3ed39eb820bb228bbabd0a
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index 0ffedea..049333c 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -116,6 +116,9 @@ void* plugin_get_buffer(size_t *buffer_size);
#include "rbpaths.h"
#include "core_alloc.h"
#include "screen_access.h"
+#if CONFIG_CPU == S5L8702
+#include "crypto-s5l8702.h"
+#endif
#ifdef HAVE_ALBUMART
#include "albumart.h"
@@ -160,7 +163,7 @@ void* plugin_get_buffer(size_t *buffer_size);
#define PLUGIN_MAGIC 0x526F634B /* RocK */
/* increase this every time the api struct changes */
-#define PLUGIN_API_VERSION 234
+#define PLUGIN_API_VERSION 235
/* update this to latest version if a change to the api struct breaks
backwards compatibility (and please take the opportunity to sort in any
@@ -987,6 +990,12 @@ struct plugin_api {
void (*piezo_play)(unsigned int usecs, unsigned int freq, bool wait);
#endif
+#if CONFIG_CPU == S5L8702 && !defined(SIMULATOR)
+ void (*s5l8702_hwkeyaes)(enum hwkeyaes_direction direction,
+ uint32_t keyidx, void* data, uint32_t size);
+
+ void (*s5l8702_sha1)(const void* data, uint32_t size, void* hash);
+#endif
};
/* plugin header */