Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670910

Re: [PATCH v2 0/3] add support of hardware random generator on MediaTek MT7622

From Sean Wang <sean.wang@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 0/3] add support of hardware random generator on MediaTek MT7622
Date 2017-06-20 18:10 +0200
Message-ID <tUtT4-2pP-23@gated-at.bofh.it> (permalink)
References <tRzV0-40Z-15@gated-at.bofh.it> <tUikW-3gU-11@gated-at.bofh.it> <tUskh-1iC-7@gated-at.bofh.it> <tUsNk-1v3-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2017-06-20 at 16:59 +0200, Torsten Duwe wrote:
> On Tue, Jun 20, 2017 at 10:21:17PM +0800, Sean Wang wrote:
> > Hi Herbert,
> > 
> > thanks for effort reviewing on those patches.
> > 
> > By the way, also loop in Torsten
> > 
> > Could you kindly guide me how to determine appropriate 
> > rng->ops.quality value used by the driver?
> > 
> > I have tested with rngtest on mtk-cir and the result is got as
> > the below log shown.  If the rngtest always gives the result for
> > success rate over 99.8%, can I set the rng->ops.quality 998?
> > 
> > rngtest: starting FIPS tests...
> > rngtest: bits received from input: 20000032
> > rngtest: FIPS 140-2 successes: 998
> > rngtest: FIPS 140-2 failures: 2
> 
> No! You'd have to determine the failure threshold of the test and
> apply some math to find a lower boundary of your RNG's entropy.
> 
> What the quality is for: your RNG produces bits, but not all of them
> are completely independent of each other i.e. not completely random.
> So you simply lower the quality rating to express the net entropy
> contained in the data stream.
> 
> 	Torsten
> 


Hi Torsten,

Understood, appreciate your quick and clear explanation.
 
For the math, is there existing any well-known or recommended
open source software assisting identify the lower boundary of
RNG entropy? I think the logic should be common for all RNGs.

thanks again

	Sean


	Sean

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 0/3] add support of hardware random generator on  MediaTek MT7622 Herbert Xu <herbert@gondor.apana.org.au> - 2017-06-20 05:50 +0200
  Re: [PATCH v2 0/3] add support of hardware random generator on  MediaTek MT7622 Sean Wang <sean.wang@mediatek.com> - 2017-06-20 16:30 +0200
    Re: [PATCH v2 0/3] add support of hardware random generator on  MediaTek MT7622 Torsten Duwe <duwe@suse.de> - 2017-06-20 17:00 +0200
      Re: [PATCH v2 0/3] add support of hardware random generator on  MediaTek MT7622 Sean Wang <sean.wang@mediatek.com> - 2017-06-20 18:10 +0200

csiph-web