Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp610210pxk; Wed, 9 Sep 2020 14:00:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkngbHx+JtEtgp1GLTmOE40hAweN8HNIabHL6/VbhKN9+U5JbqoSxEctK+z6JS01yTlYUh X-Received: by 2002:a05:6402:50f:: with SMTP id m15mr6319653edv.41.1599685246279; Wed, 09 Sep 2020 14:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599685246; cv=none; d=google.com; s=arc-20160816; b=VwRqcw864MYJQQrkjbqB1zInrCycwK5UGDUQy8HSkUuhcAYj+/uNYhdlaHo3p0MWLy fuLOCtON39AFSIXcxxvkSXh9L6tFAIshhbpdzA8wz6hqvgzD6C1shOPhP1gvtJQzxydk eBCgSE1U04VHBE3iOOfNKnOwtTeFQStrAJeNMbfdKuYOesFOGCsO7AJg5ZW3YrEIuihe rk7BRM1N62T2YQI9Vy4PHbWzyUmq4v54dam64gPTRSgCl2jtJaxs43NlNKXiclS784UZ I7Z7h7TTCcthVk1GaGrs+9Bh/hzVpNkEBZKYuqSOCF2LrDaNN1iADDJVgxO9U2TdMYTO vElA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZWa/RKtOYt/ZWxmebALVWtSZqXW3VpSeAlInt+sUnr8=; b=VsQJZvcBTwY75BQIhcl1wMNn8vE9wlUI1Kd5acBYCLNM0213tK8ECiKcSyghFe+FxS QNRz5N6uGAGtiXuUnaxgSMFlPIg3PdjBHbdc0RjVWJ3kJ7D0XV587/m3uid2jFzEfQ5G hUVgDtiwIoJQ7JsHJsxNcPl2oHDuk5BOkVTHu7f2GyvCnz0I+umf7tFj/2keDF8xL8Bl /lE6jD+nUPmdjl/KuWpZtcVQXqvIbM/1/VAO5gNJLdIqf6u6p5J9ErRnB96gA5O6XOlx TN8npez2Vn4SEMTa2I3BSGvsJzWR8EkVo+iW8geEN8XwhFhLXVofrciKWTEGlEYa5ioD TNaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tMb1BsJz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si2199050edi.411.2020.09.09.14.00.22; Wed, 09 Sep 2020 14:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tMb1BsJz; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbgIIVAT (ORCPT + 99 others); Wed, 9 Sep 2020 17:00:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:59704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726426AbgIIVAT (ORCPT ); Wed, 9 Sep 2020 17:00:19 -0400 Received: from gmail.com (unknown [104.132.1.76]) (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 1242021D6C; Wed, 9 Sep 2020 21:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599685219; bh=F54bqorDuvelZki9nxOOlNdsM5DvMPojI/Jd5SSxJks=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tMb1BsJzG52BRZM9eeeYGF1iHGTjV31IFv2Jksk757l2elt+n5h1QvDlntH32ANje MOf+M5SoHhFUhLC2LLiw/g5JQ4tInmlfDjjtC6FJqctXGQIOExS56x5QFArWm+hDIF NWtK6uHXpbDCRCX/s90PinFXkisEkllW9ZjH9UEQ= Date: Wed, 9 Sep 2020 14:00:17 -0700 From: Eric Biggers To: Elena Petrova Cc: linux-crypto@vger.kernel.org, Stephan =?iso-8859-1?Q?M=FCller?= , Ard Biesheuvel , Jeffrey Vander Stoep Subject: Re: [PATCH v7] crypto: af_alg - add extra parameters for DRBG interface Message-ID: <20200909210017.GA1080156@gmail.com> References: <20200909043554.GA8311@sol.localdomain> <20200909182947.2879849-1-lenaptr@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200909182947.2879849-1-lenaptr@google.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Sep 09, 2020 at 07:29:47PM +0100, Elena Petrova wrote: > Extend the user-space RNG interface: > 1. Add entropy input via ALG_SET_DRBG_ENTROPY setsockopt option; > 2. Add additional data input via sendmsg syscall. > > This allows DRBG to be tested with test vectors, for example for the > purpose of CAVP testing, which otherwise isn't possible. > > To prevent erroneous use of entropy input, it is hidden under > CRYPTO_USER_API_RNG_CAVP config option and requires CAP_SYS_ADMIN to > succeed. > > Signed-off-by: Elena Petrova > Acked-by: Stephan M?ller Reviewed-by: Eric Biggers