From: Stephan Mueller Subject: Re: [RFC PATCH] crypto: RSA padding transform Date: Mon, 07 Sep 2015 17:10:47 +0200 Message-ID: <1917255.6DsdEGCabm@tauon.atsec.com> References: <1441494029-6765-1-git-send-email-andrew.zaborowski@intel.com> <2234268.M7UZMy8YJa@tauon.atsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Tadeusz Struk , linux-crypto@vger.kernel.org To: Andrzej Zaborowski Return-path: Received: from mail.eperm.de ([89.247.134.16]:33793 "EHLO mail.eperm.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbbIGPLG (ORCPT ); Mon, 7 Sep 2015 11:11:06 -0400 In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: Am Montag, 7. September 2015, 16:42:42 schrieb Andrzej Zaborowski: Hi Andrzej, > >Specifically I use 1 + prandom_u32_max(255) which should give me >numbers > 0 although it can't be perfectly uniform. Oh, now I see. Thanks for the clarification. And yes, per definition the values cannot be uniform (not just because of the +1 but also since prandom is not a cryptographic RNG). Ciao Stephan