Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751508AbdCZQQB convert rfc822-to-8bit (ORCPT ); Sun, 26 Mar 2017 12:16:01 -0400 Received: from mail.eperm.de ([89.247.134.16]:58536 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbdCZQQA (ORCPT ); Sun, 26 Mar 2017 12:16:00 -0400 From: Stephan =?ISO-8859-1?Q?M=FCller?= To: Krzysztof Kozlowski Cc: PrasannaKumar Muralidharan , Kukjin Kim , Javier Martinez Canillas , Matt Mackall , Herbert Xu , "David S. Miller" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org, Bartlomiej Zolnierkiewicz , Arnd Bergmann , Olof Johansson 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> In-Reply-To: <20170326160126.nwboar7mwztwxtgp@kozik-lap> References: <20170325162654.3827-1-krzk@kernel.org> <20170326160126.nwboar7mwztwxtgp@kozik-lap> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 611 Lines: 24 Am Sonntag, 26. M?rz 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