mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephan Mueller <smueller@chronox.de>
To: "Theodore Ts'o" <tytso@mit.edu>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-crypto@vger.kernel.org, david.fontaine@capgemini.com,
	olivier.vivolo@orange.com
Subject: Re: random.c: LFSR polynomials are not irreducible/primitive
Date: Wed, 16 Aug 2017 14:51:42 +0200	[thread overview]
Message-ID: <1801152.Iu9ZVUxv1v@tauon.chronox.de> (raw)
In-Reply-To: <20170815151224.jff5kvmin44lhkot@thunk.org>

[-- Attachment #1: Type: text/plain, Size: 1102 bytes --]

Am Dienstag, 15. August 2017, 17:12:24 CEST schrieb Theodore Ts'o:

Hi Theodore,

> 
> Stephan, if you have any comments on the proposal made by David
> Fontaine and Olivier Vivolo, I'd appreciate hearing them!

I think I have some news: The magma code I used for GF(2^32) testing was not 
correct.

The corrected magma code is attached (thanks to Dr. Peter Birkner, BSI, who 
helped me here).

That magma code shows:

- the current polynomials for Q(X) = α**3 (P(X) − 1) + 1 are irreducible but 
not primitive over GF(2^32)

- the polynomials suggested in https://eprint.iacr.org/2017/726.pdf Q(X) = 
α**4 (P(X) − 1) + 1 are both, irreducible and primitive over GF(2^32)

The use of GF(2^32) is important, because we apply the LFSR to a 32 bit word. 
Hence, we have 2^32 permutations the LFSR should evenly cover.


Bottom line, I would recommend that random.c is patched to take the 
polynomials suggested in https://eprint.iacr.org/2017/726.pdf.


If it is of any help, the attached magma code could be preserved somewhere 
useful (in random.c?)

Ciao
Stephan

[-- Attachment #2: LFSR_polynomials eprint 251.mag --]
[-- Type: application/x-wine-extension-mag, Size: 2655 bytes --]

  reply	other threads:[~2017-08-16 12:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-14  8:20 Stephan Mueller
2017-08-14 22:21 ` Theodore Ts'o
2017-08-15  8:45   ` Stephan Mueller
2017-08-15 15:12     ` Theodore Ts'o
2017-08-16 12:51       ` Stephan Mueller [this message]
2017-08-16 18:59         ` Fontaine david
2017-08-17  6:07       ` Stephan Mueller

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=1801152.Iu9ZVUxv1v@tauon.chronox.de \
    --to=smueller@chronox.de \
    --cc=david.fontaine@capgemini.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olivier.vivolo@orange.com \
    --cc=tytso@mit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®