From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FSL_HELO_FAKE,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_DKIMWL_WL_HIGH,USER_AGENT_MUTT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 926DDC4321A for ; Tue, 11 Jun 2019 18:09:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 714E920874 for ; Tue, 11 Jun 2019 18:09:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560276541; bh=q/41VlzEConGkNSz8iGGkLIv+MXKhKdZsbWwwxboWtY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=MVB2hfBHQJ61ms+XLzhHp6OxojIlHF1rp+uUsM89U6ZpYZMaEyFlneZk+6xM497ZM p6t5MRcCQ7By31inmfcaMLhFk+LWmr+V3V7hSlN+DQkFleqbUPbmYxYE5d9RP0jYcE y5Rcp3gtKJbaqvSdqBgKgkscm356NiEiKeg/d0BU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406969AbfFKSJA (ORCPT ); Tue, 11 Jun 2019 14:09:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406685AbfFKSJA (ORCPT ); Tue, 11 Jun 2019 14:09:00 -0400 Received: from gmail.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C512206E0; Tue, 11 Jun 2019 18:08:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560276539; bh=q/41VlzEConGkNSz8iGGkLIv+MXKhKdZsbWwwxboWtY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oKKxw8TeMRmGSVO/TcFauL5ayTnX70KK765iMDWSWCqeTg0Royf0Wr5XMXUhBFT6h 6XX3GXwtEIBWqLJHy4Rhb9NYiEZlRSkmE/upjJvH+O87/u97SAXrfndi1HAWiE0Tln aqgB8DDKleZN3PSYxCTO6T6s3ATh7n8Vnf8gZfxg= Date: Tue, 11 Jun 2019 11:08:58 -0700 From: Eric Biggers To: Ard Biesheuvel Cc: linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , Johannes Berg , linux-ppp@vger.kernel.org, Paul Mackerras Subject: Re: [PATCH v3 6/7] ppp: mppe: switch to RC4 library interface Message-ID: <20190611180857.GD66728@gmail.com> References: <20190611134750.2974-1-ard.biesheuvel@linaro.org> <20190611134750.2974-7-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190611134750.2974-7-ard.biesheuvel@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Jun 11, 2019 at 03:47:49PM +0200, Ard Biesheuvel wrote: > @@ -728,8 +660,7 @@ static struct compressor ppp_mppe = { > static int __init ppp_mppe_init(void) > { > int answer; > - if (!(crypto_has_skcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC) && > - crypto_has_ahash("sha1", 0, CRYPTO_ALG_ASYNC))) > + if (!crypto_has_ahash("sha1", 0, CRYPTO_ALG_ASYNC)) > return -ENODEV; Doesn't fips_enabled need to be checked here too? - Eric