Changed the __driver-gcm-aes-aesni to be a proper aead algorithm.
This required a valid setkey and setauthsize functions to be added and also
some changes to make sure that math context is not corrupted when the alg is
used directly.
Note that the __driver-gcm-aes-aesni should not be used directly
Am Montag, 26. Januar 2015, 08:58:33 schrieb Tadeusz Struk:
Hi Tadeusz,
On 01/25/2015 04:10 PM, Herbert Xu wrote:
On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote:
Hi Stephan,
On 01/25/2015 12:58 AM, Stephan Mueller wrote:
+static int rfc4106_set_key(struct
On 01/25/2015 04:10 PM, Herbert Xu wrote:
On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote:
Hi Stephan,
On 01/25/2015 12:58 AM, Stephan Mueller wrote:
+static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
+ unsigned int key_len)
{
On 01/26/2015 11:20 AM, Stephan Mueller wrote:
Here we have two instances of crypto_aead algorithm, one the
rfc4106(gcm(aes)), whose setkey points to rfc4106_set_key(), and the
internal helper __gcm-aes-aesni (wrapped in by the cryptd interface),
whose setkey points to
Hi Stephan,
On 01/25/2015 12:58 AM, Stephan Mueller wrote:
+static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
+ unsigned int key_len)
{
struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(parent);
struct crypto_aead *cryptd_child =
On Sun, Jan 25, 2015 at 08:26:50AM -0800, Tadeusz Struk wrote:
Hi Stephan,
On 01/25/2015 12:58 AM, Stephan Mueller wrote:
+static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
+ unsigned int key_len)
{
struct aesni_rfc4106_gcm_ctx
Changed the __driver-gcm-aes-aesni to be a proper aead algorithm.
Signed-off-by: Tadeusz Struk tadeusz.st...@intel.com
---
arch/x86/crypto/aesni-intel_glue.c | 53 ++--
1 file changed, 39 insertions(+), 14 deletions(-)
diff --git