Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp76041ybh; Mon, 20 Jul 2020 10:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE+9YF5+mx637GzvBnUhW1rQRAhOr5hZZJxPlZsBHop8J/HYHr+1kktYLhF707pBuQ2g5M X-Received: by 2002:a05:6402:2c2:: with SMTP id b2mr22263639edx.184.1595266998390; Mon, 20 Jul 2020 10:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595266998; cv=none; d=google.com; s=arc-20160816; b=GKQI4I0coUXVeUK6bJi74Qlnqx4ThIUHu4lpYGnWzoYvQs4Qoli+H7nz0UyJlOJORB DWUh39lj9XG1ot5DYvujSwxY2iw7QwlGnVKY28++KFfJGIfRB9kvYZJZJ5+IPFiPfYOi UhsajtoIQlMAU76YIBshVuZZpSddaoHz7EtQyjHCZt8xF6JKkS1SRKCSOZTw4U+4eUse InW7yrG0gxfavlT26D5MRtX8WBoq7URfZe1C92kO2GjPcIiFq4zP6jnVUUFlxnm3P30B 2g2hEScXipq9JNlCHQYQjIF6/HUB1gR2iDO5HDPBFAg/TEkpIFcBejpX3Ks3cfxXofln NWzQ== 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=ZZkjsjjG5xVVGmOSvaZulXwonBdu0/RYzHnYnFpsr/E=; b=Xm7NJogqlqjwP6Nf98FZL0d0cgrFDom13jY5ScxHYCcXyLiOw2tI6XyscK0BRMt+p/ JPz+8JJuIihcozmDns50Ebijlt+AIJDrKMi9TiUwiWJWZOFXQM9q9brWnbIS5QaHcpvw xIsVGpCA8asQOlqDD5WveduEDrrqGfh0uKJaAZJHxSXf0yoWPY7KJYNKFQivFbM7UjW2 RnXwM3QWkY76VmlgEh0eZ1u2YxRi8lUzIZhtdZR/v2eeP3pAf2whIUzRGQ3sMXle6BO4 H/Za7dK2evGxQMvUrzMt3vhPjoOq9qzoWZGafYDhnV9yrz0+AXWG/2AzbTy0aYf9Wkme 6HBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@chronox.de header.s=strato-dkim-0002 header.b=pzniIhTw; 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 ci12si10933004ejb.448.2020.07.20.10.42.53; Mon, 20 Jul 2020 10:43:18 -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=pzniIhTw; 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 S1730298AbgGTRmv (ORCPT + 99 others); Mon, 20 Jul 2020 13:42:51 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.83]:32068 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729786AbgGTRmu (ORCPT ); Mon, 20 Jul 2020 13:42:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1595266969; 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=ZZkjsjjG5xVVGmOSvaZulXwonBdu0/RYzHnYnFpsr/E=; b=pzniIhTw2b8GU7N+Bzb5PtKIjZ1HYOHpmJrT7dLSSGcH9ZgqSzJQtYALbqOi67BIfs hXcHabROOR2X7W3Y0Adr04Diosy/OOykVZLJXzigXeCYI5ZGwU4XWEYaNNzsWt3MSrIq ajqxrr2D0DLz2Jfxi8jcODvGm1b6QflVPT+xTkfXOni5wDnYYtZVwqCv/0J7QNSPj6tO QhIdD5dZsWsdzysJIosUA1mvLGo74lTfQSXkklrxkSHHydoEJ2pVYIMPhyllfX9KtSAZ 3KA3J5EkXzu8/IvgVgTWRbWs4w/yUaJ82YSa3l8mueebxFPK54qglH2KQgIQKUhzDyRh G8Vw== X-RZG-AUTH: ":P2ERcEykfu11Y98lp/T7+hdri+uKZK8TKWEqNyiHySGSa9k9xmwdNnzGHXPZJPScHiDh" X-RZG-CLASS-ID: mo00 Received: from positron.chronox.de by smtp.strato.de (RZmta 46.10.5 DYNA|AUTH) with ESMTPSA id y0546bw6KHgjUPj (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 20 Jul 2020 19:42:45 +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 Subject: Re: [PATCH v2] crypto: af_alg - add extra parameters for DRBG interface Date: Mon, 20 Jul 2020 19:42:44 +0200 Message-ID: <20725987.EfDdHjke4D@positron.chronox.de> In-Reply-To: <20200716164028.1805047-1-lenaptr@google.com> References: <20200716164028.1805047-1-lenaptr@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Am Donnerstag, 16. Juli 2020, 18:40:28 CEST schrieb Elena Petrova: Hi Elena, > diff --git a/include/crypto/if_alg.h b/include/crypto/if_alg.h > index 56527c85d122..312fdb3469cf 100644 > --- a/include/crypto/if_alg.h > +++ b/include/crypto/if_alg.h > @@ -46,6 +46,7 @@ struct af_alg_type { > void *(*bind)(const char *name, u32 type, u32 mask); > void (*release)(void *private); > int (*setkey)(void *private, const u8 *key, unsigned int keylen); > + int (*setentropy)(void *private, const u8 *entropy, unsigned int len); > int (*accept)(void *private, struct sock *sk); > int (*accept_nokey)(void *private, struct sock *sk); > int (*setauthsize)(void *private, unsigned int authsize); > @@ -123,7 +124,7 @@ struct af_alg_async_req { > * @tsgl_list: Link to TX SGL > * @iv: IV for cipher operation > * @aead_assoclen: Length of AAD for AEAD cipher operations > - * @completion: Work queue for synchronous operation > + * @wait: Wait on completion of async crypto ops What is this change about? I am not sure it relates to the changes above. > * @used: TX bytes sent to kernel. This variable is used to > * ensure that user space cannot cause the kernel > * to allocate too much memory in sendmsg operation. > diff --git a/include/uapi/linux/if_alg.h b/include/uapi/linux/if_alg.h Ciao Stephan