summaryrefslogtreecommitdiff
path: root/Documentation/crypto/api-samples.rst
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2017-03-09 10:11:19 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2017-03-16 17:58:57 +0800
commit9aa2fcb8cf8b1030db2ed5afaa8737e94437a27c (patch)
tree74aa7c0e71c8e66c8f9b8bb186a59e797e55c8dd /Documentation/crypto/api-samples.rst
parent98b10235f348ddb88be7afc1da167a85f88fcb56 (diff)
crypto: mediatek - make hardware operation flow more efficient
This patch refines data structures, which are used to control engine's data path, to make it more efficient. Hence current change are: - gathers the broken pieces of structures 'mtk_aes_ct''mtk_aes_tfm' into struct mtk_aes_info hence avoiding additional DMA-mapping. - adds 'keymode' in struct mtk_aes_base_ctx. When .setkey() callback is called, we store keybit setting in keymode. Doing so, there is no need to check keylen second time in mtk_aes_info_init() / mtk_aes_gcm_info_init(). Besides, this patch also removes unused macro definitions and adds helper inline function to write security information(key, IV,...) to info->state. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation/crypto/api-samples.rst')
0 files changed, 0 insertions, 0 deletions