Skip to content

Commit

Permalink
crypto: hisilicon/sec - add new algorithm mode for AEAD
Browse files Browse the repository at this point in the history
Add new algorithm mode for AEAD:
CCM(AES), GCM(AES), CCM(SM4), GCM(SM4).

Signed-off-by: Kai Ye <[email protected]>
Signed-off-by: Longfang Liu <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
yekai123123 authored and herbertx committed Jun 11, 2021
1 parent 1b82435 commit c16a70c
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 34 deletions.
4 changes: 4 additions & 0 deletions drivers/crypto/hisilicon/sec2/sec.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ struct sec_alg_res {
dma_addr_t pbuf_dma;
u8 *c_ivin;
dma_addr_t c_ivin_dma;
u8 *a_ivin;
dma_addr_t a_ivin_dma;
u8 *out_mac;
dma_addr_t out_mac_dma;
};
Expand All @@ -33,6 +35,8 @@ struct sec_cipher_req {
struct sec_aead_req {
u8 *out_mac;
dma_addr_t out_mac_dma;
u8 *a_ivin;
dma_addr_t a_ivin_dma;
struct aead_request *aead_req;
};

Expand Down
Loading

0 comments on commit c16a70c

Please sign in to comment.