Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1373957ybg; Wed, 29 Jul 2020 12:27:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2j4dLsVO4r51v1rkH3FAdm4E5tdglsrG7v3eAm87Jkra6q80bpbMM9igvNj3P8DXFvAPg X-Received: by 2002:a17:906:6dd1:: with SMTP id j17mr18069040ejt.272.1596050823141; Wed, 29 Jul 2020 12:27:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596050823; cv=none; d=google.com; s=arc-20160816; b=qOK3LRTXIWGnqFgVMr060BDxVT4PAX3D1zddE0YAPLM0OnZ4RtWw6LxD0ZU9yz65us t9bLnK/FGpvWSmvkYFs7xVYPYfeX0zeic/NraNTZywEJvXfA8UTwxCOsPTrmUz454h+N BkNvtCxjYoqgO0GSrZ7SXHWdcFjRtM8rrmKszOkuJq6hx9va6Xzk9FyE3Dgliqkc+6Kw EXP0qF1v7Fz5HjlBn+jj3+Qy/NVxZQTZW38Z/rDDvNUQBAcRRW7dHK4ulGKWMcO8teIg tYpQMKjKUBSXhyMTDweigDdRrBjNFizPScOJD2gLWMZsc5ZLtPRRPzKGNHpDjlcfwWs4 PFLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XsHiVjq90JWhvljrAQsxUaGqLyylaSzk3ZU4RBNsFuM=; b=Fodx5eOQv1D4PmxQD6yUdtjQ2FzDd9qwpbjVVxnlFpn5RMiOjozcYKL5E9qwRsVzPN 6JbSeDUQ34eLKQ/PhLpE7n9twFWzl0d3plLt4N5dYGBORjNDMzOhaCbjEfykaP2sAVgK ufZaAcIzU0G/jwwtSplaPzzMGnQkNDrvha8tlWyo+UeMqXcvAWdKIeCpLtBQy6PnAs5Z lm/OfpLpJq3R0YHDK+uTonIwz5whYcMXKouyaGzb8PVOzWQcQuSgu4SAMguT1UPFzf6J r0rJYMszk0yuZXvwgCEtZvkpaIUl3HVFh2lyVzb0Lq7rRhu49y+gK6jaZ5e98TAjeh3B XX4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=lHCfd2YG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si1977292edy.498.2020.07.29.12.26.33; Wed, 29 Jul 2020 12:27:03 -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=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=lHCfd2YG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726365AbgG2T0b (ORCPT + 99 others); Wed, 29 Jul 2020 15:26:31 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.20]:31290 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgG2T0b (ORCPT ); Wed, 29 Jul 2020 15:26:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1596050786; s=strato-dkim-0002; d=chronox.de; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=XsHiVjq90JWhvljrAQsxUaGqLyylaSzk3ZU4RBNsFuM=; b=lHCfd2YGwz9j37EszteieQI+Y53RFyyv6xV6WJlqqVIct8hmPhhqVlTZL1aE9pTrSH tgYh0s3p/A696wTtmG1a3ohdmo5MmuWmEMt1KsEpyz5QhXsSr5Mjw5mH45ucONcefPxw l0W3/DNz9wi+FE9tuXR8zc4GwUozWwkmuUvQ/+H+nWs/yt1lBUKlWJZ8v/nO4BWSuGQm uD2D+i+VkmJWj7HljNykGC3Y86nWXqyT/zPDusiL85BMQ4yqqFeG5/3szO2gEm5oSa41 OSc+D00t9Oxvjwz7RRwlIumLnOScws/uWown+UtS1tFqG1a0F1jGVCPMUKgy2sRtTkz0 Su0Q== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzHHXDbLvSf24qr" X-RZG-CLASS-ID: mo00 Received: from positron.chronox.de by smtp.strato.de (RZmta 46.10.5 DYNA|AUTH) with ESMTPSA id y0546bw6TJQLFrz (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 29 Jul 2020 21:26:21 +0200 (CEST) From: Stephan =?ISO-8859-1?Q?M=FCller?= To: linux-crypto@vger.kernel.org, Elena Petrova Cc: Elena Petrova , Eric Biggers , Ard Biesheuvel , Jeffrey Vander Stoep Subject: Re: [PATCH v4] crypto: af_alg - add extra parameters for DRBG interface Date: Wed, 29 Jul 2020 21:26:20 +0200 Message-ID: <2540335.mvXUDI8C0e@positron.chronox.de> In-Reply-To: <20200729154501.2461888-1-lenaptr@google.com> References: <20200728173603.GD4053562@gmail.com> <20200729154501.2461888-1-lenaptr@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Mittwoch, 29. Juli 2020, 17:45:01 CEST schrieb Elena Petrova: Hi Elena, > 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. >=20 > This allows DRBG to be tested with test vectors, for example for the > purpose of CAVP testing, which otherwise isn't possible. >=20 > To prevent erroneous use of entropy input, it is hidden under > CRYPTO_USER_API_CAVP_DRBG config option and requires CAP_SYS_ADMIN to > succeed. >=20 > Signed-off-by: Elena Petrova Acked-by: Stephan M=FCller Ciao Stephan