From patchwork Thu Feb 23 07:38:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Broz X-Patchwork-Id: 9587839 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 5C6A7604A2 for ; Thu, 23 Feb 2017 07:40:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3FF88285E2 for ; Thu, 23 Feb 2017 07:40:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34D0D28684; Thu, 23 Feb 2017 07:40:23 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 C1B0D285E2 for ; Thu, 23 Feb 2017 07:40:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751032AbdBWHkV (ORCPT ); Thu, 23 Feb 2017 02:40:21 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:35029 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdBWHkU (ORCPT ); Thu, 23 Feb 2017 02:40:20 -0500 Received: by mail-wr0-f193.google.com with SMTP id q39so2894040wrb.2 for ; Wed, 22 Feb 2017 23:39:36 -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=SpOzIY/9J28ulgzPMv6eUrL3OZCui3PewCGxa02S21c=; b=ZuSnvmGu2lQCR/BBQAiAXv++iu1JSGrTrmO+etUbh8ytEo+0FSc5YmaFWmjM7WUj5l MJLG42uSwQFLW84VkyU8RdOuKSknCdVtUX9B7NDG3ffiw26uXu9Rb02X6UqcocUV8Xba iuYW95jt0BpmWSQdsB6UhkBVx1UpvhLN4EXL1f37o39luz4GYfQTD4HLbmHDPAzeSAZc NIzBnGlWi+IhDp4Z7gk9oVGL5l8zSJdlRAnTAC4iAlzz8kVB0FEEuDgAcjPDqFZfmjws 4jHew99fs5EarpsaKMGHeVrN45MY9BhiIrtRYlFzbL1DNEsHjFvYdd1d2l3/yG6+mTSu 8Sjg== 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=SpOzIY/9J28ulgzPMv6eUrL3OZCui3PewCGxa02S21c=; b=jzywc67REYMGgDBSn6884lDjSzbDEKQ+AemQr0s12Na4xWfmnnG2y+OnD8RbFCgJVa 6UJAqeF2Q1zYLJW/bUPewr/9w33uIOWBjGHVx+DVfGIl+s106QLxL8jVltdbdUnZsJRc z6x3/g/mfzPqueG2Zg7bw6pajp8ed2NmDS35rLCUEhfnype4R4mRLKF4MGwBWrIDtMoe HmGAE+95f7B3428ZuzdIyziyNpHw1pjy+J2CwcJZS+hJyBCfDkUlFRY05LI8z64D73oS Wm49J5JAxSp9pazemQnWNJFfy7it1Yr6rg3QhYoN8Cssl11vbbbhGb9rTaZJlp/qNNhg tQoA== X-Gm-Message-State: AMke39lzWNwq5hUBLglJx4sH5Onhcld6suVwCSk9t06LVwK52j8o3YgYu3MYX8/67dI97w== X-Received: by 10.223.172.66 with SMTP id v60mr27513976wrc.77.1487835575063; Wed, 22 Feb 2017 23:39:35 -0800 (PST) Received: from merlot.mazyland.net (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.googlemail.com with ESMTPSA id v21sm4820713wra.67.2017.02.22.23.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Feb 2017 23:39:34 -0800 (PST) From: Milan Broz To: linux-crypto@vger.kernel.org Cc: herbert@gondor.apana.org.au, nicolasporcel06@gmail.com, Milan Broz Subject: [PATCH] crypto: Add ECB dependency for XTS mode Date: Thu, 23 Feb 2017 08:38:26 +0100 Message-Id: <20170223073826.19066-1-gmazyland@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170221231717.GA7186@nicolas-laptop> References: <20170221231717.GA7186@nicolas-laptop> 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 Since the commit f1c131b45410a202eb45cc55980a7a9e4e4b4f40 crypto: xts - Convert to skcipher the XTS mode is based on ECB, so the mode must select ECB otherwise it can fail to initialize. Signed-off-by: Milan Broz --- crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/Kconfig b/crypto/Kconfig index 160f08e721cc..9c245eb0dd83 100644 --- a/crypto/Kconfig +++ b/crypto/Kconfig @@ -374,6 +374,7 @@ config CRYPTO_XTS select CRYPTO_BLKCIPHER select CRYPTO_MANAGER select CRYPTO_GF128MUL + select CRYPTO_ECB help XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, key size 256, 384 or 512 bits. This implementation currently