From patchwork Fri Dec 29 16:10:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Biggers X-Patchwork-Id: 10137211 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D885A6020A for ; Fri, 29 Dec 2017 16:13:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C945B2C5FA for ; Fri, 29 Dec 2017 16:13:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C77972C32F; Fri, 29 Dec 2017 16:13:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D05402D253 for ; Fri, 29 Dec 2017 16:13:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751353AbdL2QNB (ORCPT ); Fri, 29 Dec 2017 11:13:01 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:40427 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751246AbdL2QNA (ORCPT ); Fri, 29 Dec 2017 11:13:00 -0500 Received: by mail-it0-f68.google.com with SMTP id f190so32001234ita.5 for ; Fri, 29 Dec 2017 08:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mdosVTHmm01e7iW4fMepp5ngg9WdI58acZJNhwICK5A=; b=t6dbmb/7mDs/LiqQWwvc4zaQmrFupOFP4yzAjiXZ3Mkjc5d1iYN0mB4ej/KXhnHGdd peyoNSrk8P0BueGvXFE0n6cuBo5s/vO8k/yRWCjtS+1aaEJ6ZFR2+GPnZtdmG8SXiITi ClF3BsN6cxgxmcKK0Vq1m5y1+1J2SZnVtvyHGD4LsuCKfqo6mg7P5QmDjvcNFDAbV4GT QK4+bKK/mhdUEsNcARANS8dcK1OKFr2Z0ZmM2OhwRZNYAl49pTiMpj8fCW9zNnR59rCD qDLfAr4ABzwxECTgwg/n/X7Q+hh5XF7RrQTTc/Z2KeniWBUeAZJv15v8yH3NWby1zClg e+mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mdosVTHmm01e7iW4fMepp5ngg9WdI58acZJNhwICK5A=; b=gV/f/9xkinmF+S+51cG3ui03pWLfuZy4QXxdsf9cvhiIU6+8Mm1FvUGR5Vvt4VGLEd a4fDYALFGn2vxBE4d96/Ld49afshzLIr2IScFLQNv9kG4RM/gOGf8pWdsvg7cnPdHHTa 6uZwVy7Da1OMkO6XQh31g4lDAK5vCvcvsp3Q57Sz1B7VAiMeBNHTB4BP/AG1qTtw3RIL Fhhe9IzHneLP3fEYID1Qmatq8gk+y3zVdL+S1mgkrM0OjljOqUWNhxFYrurvphGnRlmP G8/syK7KnLjo3IGn/EPD49cFzNy2/pTXY6iXqkjOSYzvQkTzKsM5oAJQ16j4SdxOsa1L N6rg== X-Gm-Message-State: AKGB3mLKMKHSUvHn95tLUx2fxUQXVYzvDVf6slSQfVPAtzU4E07ev7zO Qugk6n5jyGx4lSczRvZh5QGaT8+M X-Google-Smtp-Source: ACJfBov9lKLT0CJkkiSmmxM8sM0BXqziIII7P/Jy/oi2rh+g6NeUXks0hu3lJykdUr0rk1f/DddjZg== X-Received: by 10.36.74.134 with SMTP id k128mr46294851itb.93.1514563979707; Fri, 29 Dec 2017 08:12:59 -0800 (PST) Received: from zzz.Home (h184-60-19-231.mdsnwi.dsl.dynamic.tds.net. [184.60.19.231]) by smtp.gmail.com with ESMTPSA id 72sm1743830itg.0.2017.12.29.08.12.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Dec 2017 08:12:59 -0800 (PST) From: Eric Biggers To: linux-crypto@vger.kernel.org, Herbert Xu Cc: "David S . Miller" , "Jason A . Donenfeld" , Martin Willi , Eric Biggers Subject: [PATCH 2/3] crypto: poly1305 - remove cra_alignmask Date: Fri, 29 Dec 2017 10:10:25 -0600 Message-Id: <20171229161026.28102-3-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171229161026.28102-1-ebiggers3@gmail.com> References: <20171229161026.28102-1-ebiggers3@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Eric Biggers Now that nothing in poly1305-generic assumes any special alignment, remove the cra_alignmask so that the crypto API does not have to unnecessarily align the buffers. Signed-off-by: Eric Biggers --- crypto/poly1305_generic.c | 1 - 1 file changed, 1 deletion(-) diff --git a/crypto/poly1305_generic.c b/crypto/poly1305_generic.c index d752901ba0bc..d92617aeb783 100644 --- a/crypto/poly1305_generic.c +++ b/crypto/poly1305_generic.c @@ -287,7 +287,6 @@ static struct shash_alg poly1305_alg = { .cra_driver_name = "poly1305-generic", .cra_priority = 100, .cra_flags = CRYPTO_ALG_TYPE_SHASH, - .cra_alignmask = sizeof(u32) - 1, .cra_blocksize = POLY1305_BLOCK_SIZE, .cra_module = THIS_MODULE, },