Commit Graph

3 Commits

Author SHA1 Message Date
Meenakshi Aggarwal
b32926ef04 crypto: tls - Use data directly in completion function
Facing build error in building tls
error: passing argument 3 of ?ahash_request_set_callback?
from incompatible pointer type [-Werror=incompatible-pointer-types]

Issue introduced after changing prototype of "crypto_completion_t"
function pointer in include/linux/crypto.h, conversion of
completion function of tls was missed.

Changes are done to use data directly in completion function of tls.

Fixes: 255e48eb17 ("crypto: api - Use data directly in completion function")
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2023-10-30 17:37:37 +08:00
Radu Alexe
4a41562399 crypto: tls - fix copyright format
Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
2023-10-30 17:35:42 +08:00
Radu Alexe
c0c0af22d2 crypto: add support for TLS 1.0 record encryption
This patch adds kernel support for encryption/decryption of TLS 1.0
records using block ciphers. Implementation is similar to authenc in the
sense that the base algorithms (AES, SHA1) are combined in a template to
produce TLS encapsulation frames. The composite algorithm will be called
"tls10(hmac(<digest>),cbc(<cipher>))". The cipher and hmac keys are
wrapped in the same format used by authenc.c.

Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Signed-off-by: Horia Geantă <horia.geanta@nxp.com>

Merged LF commit (rebase-20200703/crypto/core):
856fb52acc28 ("crypto: tls - fix logical-not-parentheses compile warning")

Merged LF commit (next-nxp-20200811):
0f90a0618247 ("crypto: tls: fix build issue")

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
[ Leo: updated Kconfig to align with upstream menu restructure ]
Signed-off-by: Li Yang <leoyang.li@nxp.com>
2023-10-30 17:35:41 +08:00