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


Groups > linux.kernel > #1689906

Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible

From Stephan Müller <smueller@chronox.de>
Newsgroups linux.kernel
Subject Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible
Date 2017-07-18 11:20 +0200
Message-ID <u4wPE-w0-7@gated-at.bofh.it> (permalink)
References <u4vTz-8ne-3@gated-at.bofh.it> <u4wwh-9E-1@gated-at.bofh.it> <u4wFX-sD-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Am Dienstag, 18. Juli 2017, 11:02:02 CEST schrieb Arnd Bergmann:

Hi Arnd,
> 
> I can see why the jitterentropy implementation avoids using kernel headers,
> the problem now is that part of it gets moved into a new header, and that
> already violates the original principle.
> 
> From my reading of the code, we could probably leave the structure
> definition in the crypto/jitterentropy.c, and have the statically
> allocated instance in the same file when CONFIG_LRNG is
> set,

That is a very good idea -- I will implement this approach.

> or provide a way to allocate an instance early (I assume you
> can't call jent_entropy_collector_alloc() here since you need
> the RNG long before kzalloc() works).

Correct. I cannot assume that any of the memory allocation routines are 
available.

Thank you.

Ciao
Stephan

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


Thread

[RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Stephan Müller <smueller@chronox.de> - 2017-07-18 10:20 +0200
  Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-07-18 10:40 +0200
    Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Stephan Müller <smueller@chronox.de> - 2017-07-18 10:50 +0200
      Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-07-18 11:00 +0200
        Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Stephan Müller <smueller@chronox.de> - 2017-07-18 11:00 +0200
        Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Arnd Bergmann <arnd@arndb.de> - 2017-07-18 11:10 +0200
          Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Stephan Müller <smueller@chronox.de> - 2017-07-18 11:20 +0200
            Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Arnd Bergmann <arnd@arndb.de> - 2017-07-18 11:20 +0200
              Re: [RFC PATCH v12 1/4] crypto: make Jitter RNG directly accessible Stephan Müller <smueller@chronox.de> - 2017-07-18 11:20 +0200

csiph-web