From: Kalle Valo <kvalo-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
To: Stephan Mueller <smueller-T9tCv8IpfcWELgA04lAiVw@public.gmane.org>
Cc: Oleksij Rempel <linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org>,
"Pan\,
Miaoqing" <miaoqing-Rm6X0d1/PG5y9aJCnZT0Uw@public.gmane.org>,
"linville\@tuxdriver.com"
<linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org>,
"linux-wireless\@vger.kernel.org"
<linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
Theodore Ts'o <tytso-3s7WtUTddSA@public.gmane.org>,
linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org
Subject: Re: [PATCH 2/2] ath9k: export HW random number generator
Date: Fri, 31 Jul 2015 10:08:42 +0300 [thread overview]
Message-ID: <8738043ith.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <3945775.m5HblJPgiO-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org> (Stephan Mueller's message of "Mon, 27 Jul 2015 13:01:46 +0200")
Stephan Mueller <smueller-T9tCv8IpfcWELgA04lAiVw@public.gmane.org> writes:
>>-rw-rw-r-- 1 lex lex 2564096 Jul 27 11:36 hwrng.out
>>-rw-rw-r-- 1 lex lex 2468394 Jul 27 11:36 hwrng.out.bz2
>>
>>Do i understand it correctly, in case of hwrng bzip was able to find
>>enough pattern to compressed the data? Even with format overhead?
>>
>>I'm no an expert, help of an expert would be welcome, added some more
>>people to CC
>
> This one does not look good for a claim that the RNG produces white noise. An
> RNG that is wired up to /dev/hwrng should produce white noise. Either by
> having an appropriate noise source or by conditioning the output of the noise
> source.
>
> When conditioning the output, you have to be careful about the entropy claim.
> For example, you cannot state that the data stream from your noise source has
> close to one bit of entropy for each obtained bit. Thus, the conditioner must
> ensure that the data from the noise source is collected and its entropy is
> maintained and accumulated.
>
> However, the hwrandom framework does not provide any conditioning logic. And I
> would say that such conditioner logic should not reside in a driver either. I
> would say that the discussed RNG does not seem fit for hooking it up with the
> hwrandom framework.
Based on the discussion I'm going to revert this patch, at least for
now.
--
Kalle Valo
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Kalle Valo <kvalo@codeaurora.org>
To: Stephan Mueller <smueller@chronox.de>
Cc: Oleksij Rempel <linux@rempel-privat.de>, "Pan\,
Miaoqing" <miaoqing@qti.qualcomm.com>,
"linville\@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless\@vger.kernel.org"
<linux-wireless@vger.kernel.org>, Theodore Ts'o <tytso@mit.edu>,
linux-crypto@vger.kernel.org, nhorman@tuxdriver.com
Subject: Re: [PATCH 2/2] ath9k: export HW random number generator
Date: Fri, 31 Jul 2015 10:08:42 +0300 [thread overview]
Message-ID: <8738043ith.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <3945775.m5HblJPgiO@tauon.atsec.com> (Stephan Mueller's message of "Mon, 27 Jul 2015 13:01:46 +0200")
Stephan Mueller <smueller@chronox.de> writes:
>>-rw-rw-r-- 1 lex lex 2564096 Jul 27 11:36 hwrng.out
>>-rw-rw-r-- 1 lex lex 2468394 Jul 27 11:36 hwrng.out.bz2
>>
>>Do i understand it correctly, in case of hwrng bzip was able to find
>>enough pattern to compressed the data? Even with format overhead?
>>
>>I'm no an expert, help of an expert would be welcome, added some more
>>people to CC
>
> This one does not look good for a claim that the RNG produces white noise. An
> RNG that is wired up to /dev/hwrng should produce white noise. Either by
> having an appropriate noise source or by conditioning the output of the noise
> source.
>
> When conditioning the output, you have to be careful about the entropy claim.
> For example, you cannot state that the data stream from your noise source has
> close to one bit of entropy for each obtained bit. Thus, the conditioner must
> ensure that the data from the noise source is collected and its entropy is
> maintained and accumulated.
>
> However, the hwrandom framework does not provide any conditioning logic. And I
> would say that such conditioner logic should not reside in a driver either. I
> would say that the discussed RNG does not seem fit for hooking it up with the
> hwrandom framework.
Based on the discussion I'm going to revert this patch, at least for
now.
--
Kalle Valo
next prev parent reply other threads:[~2015-07-31 7:08 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-15 7:54 [PATCH 1/2] ath9k: Fix register definitions for QCA956x miaoqing
2015-07-15 7:54 ` [PATCH 2/2] ath9k: export HW random number generator miaoqing
2015-07-26 7:41 ` Oleksij Rempel
2015-07-27 6:50 ` Pan, Miaoqing
[not found] ` <a8b787bd17d94e8899bf1be6131165b2-Y81KQx/RBXvl7IBs54+zFqRtKmQZhJ7pQQ4Iyu8u01E@public.gmane.org>
2015-07-27 10:45 ` Oleksij Rempel
2015-07-27 10:45 ` Oleksij Rempel
2015-07-27 11:01 ` Stephan Mueller
[not found] ` <3945775.m5HblJPgiO-gNvIQDDl/k7Ia13z/PHSgg@public.gmane.org>
2015-07-28 17:41 ` Sandy Harris
2015-07-28 17:41 ` Sandy Harris
[not found] ` <CACXcFmnUcf66+X967JQL9mGrpa6ZYOqz99oK6JV8nFzABn=NZA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-29 6:33 ` Stephan Mueller
2015-07-29 6:33 ` Stephan Mueller
2015-07-31 7:08 ` Kalle Valo [this message]
2015-07-31 7:08 ` Kalle Valo
[not found] ` <8738043ith.fsf-HodKDYzPHsUD5k0oWYwrnHL1okKdlPRT@public.gmane.org>
2015-07-31 8:39 ` Pan, Miaoqing
2015-07-31 8:39 ` Pan, Miaoqing
2015-11-07 23:39 ` Nick Kossifidis
2015-11-07 23:59 ` Nick Kossifidis
2015-11-25 9:16 ` Kalle Valo
2015-07-21 14:30 ` [PATCH 1/2] ath9k: Fix register definitions for QCA956x Kalle Valo
2015-07-21 15:04 ` [1/2] " Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8738043ith.fsf@kamboji.qca.qualcomm.com \
--to=kvalo-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
--cc=linux-YEK0n+YFykbzxQdaRaTXBw@public.gmane.org \
--cc=linux-crypto-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-wireless-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linville-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
--cc=miaoqing-Rm6X0d1/PG5y9aJCnZT0Uw@public.gmane.org \
--cc=nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org \
--cc=smueller-T9tCv8IpfcWELgA04lAiVw@public.gmane.org \
--cc=tytso-3s7WtUTddSA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.