Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Apr 05, 2024
  2. Mar 16, 2023
  3. Jul 15, 2022
  4. Jul 26, 2019
  5. May 30, 2019
  6. Apr 18, 2019
    • Eric Biggers's avatar
      crypto: run initcalls for generic implementations earlier · c4741b23
      Eric Biggers authored
      
      Use subsys_initcall for registration of all templates and generic
      algorithm implementations, rather than module_init.  Then change
      cryptomgr to use arch_initcall, to place it before the subsys_initcalls.
      
      This is needed so that when both a generic and optimized implementation
      of an algorithm are built into the kernel (not loadable modules), the
      generic implementation is registered before the optimized one.
      Otherwise, the self-tests for the optimized implementation are unable to
      allocate the generic implementation for the new comparison fuzz tests.
      
      Note that on arm, a side effect of this change is that self-tests for
      generic implementations may run before the unaligned access handler has
      been installed.  So, unaligned accesses will crash the kernel.  This is
      arguably a good thing as it makes it easier to detect that type of bug.
      
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      c4741b23
  7. Apr 23, 2015
  8. Aug 29, 2008
    • Neil Horman's avatar
      crypto: api - Add fips_enable flag · ccb778e1
      Neil Horman authored
      
      Add the ability to turn FIPS-compliant mode on or off at boot
      
      In order to be FIPS compliant, several check may need to be preformed that may
      be construed as unusefull in a non-compliant mode.  This patch allows us to set
      a kernel flag incating that we are running in a fips-compliant mode from boot
      up.  It also exports that mode information to user space via a sysctl
      (/proc/sys/crypto/fips_enabled).
      
      Tested successfully by me.
      
      Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ccb778e1