From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbdKVTwx (ORCPT ); Wed, 22 Nov 2017 14:52:53 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:46983 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751376AbdKVTwM (ORCPT ); Wed, 22 Nov 2017 14:52:12 -0500 X-Google-Smtp-Source: AGs4zMY+TtLmj2dYBdY0DoonMU84JZK2OSWL9Lykm0LnBl6p1eLjZn5UR4NPaDhaJSGncl/G6EEwXw== From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Cc: "Theodore Ts'o" , "Jason A . Donenfeld" , Martin Willi , Ard Biesheuvel , linux-kernel@vger.kernel.org, Eric Biggers Subject: [PATCH 3/5] crypto: chacha20 - Remove cra_alignmask Date: Wed, 22 Nov 2017 11:51:37 -0800 Message-Id: <20171122195139.121269-4-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog In-Reply-To: <20171122195139.121269-1-ebiggers3@gmail.com> References: <20171122195139.121269-1-ebiggers3@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Biggers Now that crypto_chacha20_setkey() and crypto_chacha20_init() use the unaligned access macros and crypto_xor() also accepts unaligned buffers, there is no need to have a cra_alignmask set for chacha20-generic. Signed-off-by: Eric Biggers --- crypto/chacha20_generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/chacha20_generic.c b/crypto/chacha20_generic.c index b5a10ebf1b82..bb4affbd591c 100644 --- a/crypto/chacha20_generic.c +++ b/crypto/chacha20_generic.c @@ -105,7 +105,6 @@ static struct skcipher_alg alg = { .base.cra_priority = 100, .base.cra_blocksize = 1, .base.cra_ctxsize = sizeof(struct chacha20_ctx), - .base.cra_alignmask = sizeof(u32) - 1, .base.cra_module = THIS_MODULE, .min_keysize = CHACHA20_KEY_SIZE, -- 2.15.0.448.gf294e3d99a-goog