1. 16 Feb, 2016 10 commits
  2. 09 Feb, 2016 1 commit
  3. 06 Feb, 2016 19 commits
  4. 01 Feb, 2016 5 commits
  5. 30 Jan, 2016 3 commits
  6. 27 Jan, 2016 2 commits
    • Arnd Bergmann's avatar
      crypto: jitterentropy - always select CRYPTO_RNG · 2f313e02
      Arnd Bergmann authored
      When building the jitterentropy driver by itself, we get a link error
      when CRYPTO_RNG is not enabled as well:
      
      crypto/built-in.o: In function `jent_mod_init':
      jitterentropy-kcapi.c:(.init.text+0x98): undefined reference to `crypto_register_rng'
      crypto/built-in.o: In function `jent_mod_exit':
      jitterentropy-kcapi.c:(.exit.text+0x60): undefined reference to `crypto_unregister_rng'
      
      This adds a 'select CRYPTO_RNG' to CRYPTO_JITTERENTROPY to ensure the API
      is always there when it's used, not just when DRBG is also enabled.
      CRYPTO_DRBG would set it implicitly through CRYPTO_JITTERENTROPY now,
      but this leaves it in place to make it explicit what the driver does.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      2f313e02
    • Arnd Bergmann's avatar
      crypto: sunxi - don't print confusing data · bfb28920
      Arnd Bergmann authored
      gcc correctly warns that the printk output contains a variable that
      it thinks is not initialized in some cases:
      
      drivers/crypto/sunxi-ss/sun4i-ss-cipher.c: In function 'sun4i_ss_cipher_poll':
      drivers/crypto/sunxi-ss/sun4i-ss-cipher.c:254:76: warning: 'todo' may be used uninitialized in this function [-Wmaybe-uninitialized]
      drivers/crypto/sunxi-ss/sun4i-ss-cipher.c:144:15: note: 'todo' was declared here
      
      A closer look at the function reveals that the variable is always
      initialized at this point (ileft is guaranteed to be positive at the
      start), but its contents are not well-defined:
      Depending on some other variables, it might be either a count in
      words or bytes, and it could refer to either input or output.
      
      The easiest solution apparently is to remove the confusing output
      and let the reader figure out the state from the other variables.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      bfb28920