OSDN Git Service

crypto: octeontx2 - register with linux crypto framework
authorSrujana Challa <schalla@marvell.com>
Fri, 15 Jan 2021 13:52:27 +0000 (19:22 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jan 2021 03:58:03 +0000 (14:58 +1100)
commit6f03f0e8b6c8a82d8e740ff3a87ed407ad423243
tree4fa9bc61fd8b8af630f81f803ca5a40369ff79a0
parent8ec8015a316816b07538635fe9c04c35ad63acfc
crypto: octeontx2 - register with linux crypto framework

CPT offload module utilises the linux crypto framework to offload
crypto processing. This patch registers supported algorithms by
calling registration functions provided by the kernel crypto API.

The module currently supports:
- AES block cipher in CBC,ECB and XTS mode.
- 3DES block cipher in CBC and ECB mode.
- AEAD algorithms.
  authenc(hmac(sha1),cbc(aes)),
  authenc(hmac(sha256),cbc(aes)),
  authenc(hmac(sha384),cbc(aes)),
  authenc(hmac(sha512),cbc(aes)),
  authenc(hmac(sha1),ecb(cipher_null)),
  authenc(hmac(sha256),ecb(cipher_null)),
  authenc(hmac(sha384),ecb(cipher_null)),
  authenc(hmac(sha512),ecb(cipher_null)),
  rfc4106(gcm(aes)).

Signed-off-by: Suheil Chandran <schandran@marvell.com>
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Signed-off-by: Srujana Challa <schalla@marvell.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/marvell/Kconfig
drivers/crypto/marvell/octeontx2/Makefile
drivers/crypto/marvell/octeontx2/otx2_cpt_reqmgr.h
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.c [new file with mode: 0644]
drivers/crypto/marvell/octeontx2/otx2_cptvf_algs.h [new file with mode: 0644]
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c