STM32: Add driver for STM32L162XX AES peripheral. Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>

This commit is contained in:
Gregory Nutt
2015-02-04 06:49:05 -06:00
parent 6159d1307d
commit 1c05245963
7 changed files with 527 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@
* Public Functions
****************************************************************************/
void up_cryptoinitialize(void)
int up_cryptoinitialize(void)
{
#if defined(CONFIG_CRYPTO_AES) || defined(CONFIG_CRYPTO_ALGTEST)
int res;
+10
View File
@@ -63,6 +63,16 @@
static int do_test_aes(FAR struct cipher_testvec* test, int mode, int encrypt)
{
FAR void *out = kmm_zalloc(test->rlen);
#ifdef CONFIG_STM32_STM32L15XX
/* This architecture only has 128-bit AES in chip. */
if (test->klen != 16)
{
return OK;
}
#endif
int res = aes_cypher(out, test->input, test->ilen, test->iv, test->key,
test->klen, mode, encrypt);
if (res == OK)