From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483AbdKVTwF (ORCPT ); Wed, 22 Nov 2017 14:52:05 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:42468 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751249AbdKVTwD (ORCPT ); Wed, 22 Nov 2017 14:52:03 -0500 X-Google-Smtp-Source: AGs4zMZ0Mj1vdaOlBrmHsIlRBw/LoXpYgoCTa0/fAcpYnJmIzQ7U9By0cJ08O00EaE8zXr0bdH9eAg== 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 0/5] crypto: chacha20 - Alignment fixes Date: Wed, 22 Nov 2017 11:51:34 -0800 Message-Id: <20171122195139.121269-1-ebiggers3@gmail.com> X-Mailer: git-send-email 2.15.0.448.gf294e3d99a-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eric Biggers This series fixes potentially unaligned memory accesses when loading the initial state, key, and IV for ChaCha20, and when outputting each keystream block. It also removes the cra_alignmask from the generic and x86 ChaCha20 implementations, once it is no longer needed. Eric Biggers (5): crypto: chacha20 - Fix unaligned access when loading constants crypto: chacha20 - Use unaligned access macros when loading key and IV crypto: chacha20 - Remove cra_alignmask crypto: x86/chacha20 - Remove cra_alignmask crypto: chacha20 - Fix keystream alignment for chacha20_block() arch/x86/crypto/chacha20_glue.c | 1 - crypto/chacha20_generic.c | 33 +++++++++++++-------------------- drivers/char/random.c | 24 ++++++++++++------------ include/crypto/chacha20.h | 3 ++- lib/chacha20.c | 2 +- 5 files changed, 28 insertions(+), 35 deletions(-) -- 2.15.0.448.gf294e3d99a-goog