summaryrefslogtreecommitdiff
path: root/include/aes.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-03-05 19:58:38 +0100
committerTom Rini <trini@ti.com>2014-03-21 16:43:56 -0400
commitdc24bb6ddb416db52a60165931c0864fdba1f60b (patch)
tree3fe6c7b3144be31fa5e62591413ad44cb927c60b /include/aes.h
parent6e7b9f4fa0aed88051d6700afa510430b5d3fb69 (diff)
aes: Implement AES-128-CBC decryption function
Implement a compatible AES-128-CBC decryption function as a counterpart of the encryption function pulled from tegra20-common/crypto.c . Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'include/aes.h')
-rw-r--r--include/aes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/aes.h b/include/aes.h
index d9bb387614..4897e6faa0 100644
--- a/include/aes.h
+++ b/include/aes.h
@@ -63,4 +63,14 @@ void aes_decrypt(u8 *in, u8 *expkey, u8 *out);
*/
void aes_cbc_encrypt_blocks(u8 *key_exp, u8 *src, u8 *dst, u32 num_aes_blocks);
+/**
+ * Decrypt multiple blocks of data with AES CBC.
+ *
+ * @key_exp Expanded key to use
+ * @src Source data to decrypt
+ * @dst Destination buffer
+ * @num_aes_blocks Number of AES blocks to decrypt
+ */
+void aes_cbc_decrypt_blocks(u8 *key_exp, u8 *src, u8 *dst, u32 num_aes_blocks);
+
#endif /* _AES_REF_H_ */