From: Stephan =?ISO-8859-1?Q?M=FCller?= Subject: Re: [PATCH v3 1/3] crypto: hw_random - Add new Exynos RNG driver Date: Sun, 26 Mar 2017 18:05:55 +0200 Message-ID: <6597290.C3JGqjKOeS@positron.chronox.de> References: <20170325162654.3827-1-krzk@kernel.org> <20170326160126.nwboar7mwztwxtgp@kozik-lap> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Cc: linux-samsung-soc@vger.kernel.org, Herbert Xu , Arnd Bergmann , Bartlomiej Zolnierkiewicz , PrasannaKumar Muralidharan , linux-kernel@vger.kernel.org, Javier Martinez Canillas , Kukjin Kim , linux-crypto@vger.kernel.org, Matt Mackall , Olof Johansson , "David S. Miller" , linux-arm-kernel@lists.infradead.org To: Krzysztof Kozlowski Return-path: In-Reply-To: <20170326160126.nwboar7mwztwxtgp@kozik-lap> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: linux-crypto.vger.kernel.org Am Sonntag, 26. M=E4rz 2017, 18:01:26 CEST schrieb Krzysztof Kozlowski: Hi Krzysztof, > > > + if (slen < EXYNOS_RNG_SEED_SIZE) { > > > + dev_warn(rng->dev, "Seed too short (only %u bytes)\n", > > > slen); + return -EINVAL; > > > + } > > = > > Will it be helpful to print the required seed size? > = > It is in /proc/crypto... It is not a problem to print it but isn't that > redundant? You also get the information from crypto_user. See [1] for a user space API. [1] https://github.com/smuellerDD/libkcapi/commit/ f856e8c655b7e5c53f59ef8c5754ad59b196df08 Ciao Stephan