[PATCH 3/3] crypto: algif_aead - modify algif aead interface to work with encauth

2016-03-05 Thread Tadeusz Struk
Updates to algif_aead to allow it to work with the new TLS authentication mode. This patch is generated on top of the algif_aead async patch: https://patchwork.kernel.org/patch/8182971/ Signed-off-by: Tadeusz Struk --- crypto/algif_aead.c | 93

[PATCH 0/3] crypto: af_alg - add TLS type encryption

2016-03-05 Thread Tadeusz Struk
Hi, The following series adds TLS type authentication. To do this a new template, encauth, is introduced. It is derived from the existing authenc template and modified to work in "first auth then encrypt" mode. The algif interface is also changed to work with the new authentication type. ---

[PATCH 2/3] crypto: af_alg - add AEAD operation type

2016-03-05 Thread Tadeusz Struk
We need to allow the user to set the authentication type. This adds a new operation that sets IPSec or TLS authentication mode. Signed-off-by: Tadeusz Struk --- crypto/af_alg.c |6 ++ include/crypto/if_alg.h |1 + include/uapi/linux/if_alg.h

[PATCH 1/3] crypto: authenc - add TLS type encryption

2016-03-05 Thread Tadeusz Struk
This patch adds a new authentication mode for TLS type encryption. During encrypt it generates auth data + padding and then the plaintext || authdata || padding is encrypted. This requires the user to provide extra space for the cipher text. The required space can be calculated as outlen = assoc

[PATCH] crypto: ux500: fix checks of error code returned by devm_ioremap_resource()

2016-03-05 Thread Vladimir Zapolskiy
The change fixes potential oops while accessing iomem on invalid address, if devm_ioremap_resource() fails due to some reason. The devm_ioremap_resource() function returns ERR_PTR() and never returns NULL, which makes useless a following check for NULL. Signed-off-by: Vladimir Zapolskiy

[PATCH] crypto: atmel: fix checks of error code returned by devm_ioremap_resource()

2016-03-05 Thread Vladimir Zapolskiy
The change fixes potential oops while accessing iomem on invalid address, if devm_ioremap_resource() fails due to some reason. The devm_ioremap_resource() function returns ERR_PTR() and never returns NULL, which makes useless a following check for NULL. Signed-off-by: Vladimir Zapolskiy