crypto: mediatek - make mtk_sha_xmit() more generic
This is a transitional patch. It merges mtk_sha_xmit() and mtk_sha_xmit2() to make transmit function more generic. In addition, res->buf and cryp->tmp_dma in mtk_sha_xmit() are useless, since crypto engine writes the result digests into ctx->tfm.digest instead of res->buf. It's better to remove it. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Herbert Xu

vecāks
b7a2be388b
revīzija
82445fe995
@@ -202,8 +202,6 @@ struct mtk_sha_rec {
|
||||
* @sha: pointer to operation record of SHA
|
||||
* @aes_list: device list of AES
|
||||
* @sha_list: device list of SHA
|
||||
* @tmp: pointer to temporary buffer for internal use
|
||||
* @tmp_dma: DMA address of temporary buffer
|
||||
* @rec: it's used to select SHA record for tfm
|
||||
*
|
||||
* Structure storing cryptographic device information.
|
||||
@@ -222,8 +220,6 @@ struct mtk_cryp {
|
||||
struct list_head aes_list;
|
||||
struct list_head sha_list;
|
||||
|
||||
void *tmp;
|
||||
dma_addr_t tmp_dma;
|
||||
bool rec;
|
||||
};
|
||||
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user