04 Mar, 2009

2 commits


25 Dec, 2008

4 commits

  • When self-testing (de)compression algorithms, make sure the actual size of
    the (de)compressed output data matches the expected output size.
    Otherwise, in case the actual output size would be smaller than the expected
    output size, the subsequent buffer compare test would still succeed, and no
    error would be reported.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Herbert Xu

    Geert Uytterhoeven
     
  • This warning:

    crypto/testmgr.c: In function ‘test_comp’:
    crypto/testmgr.c:829: warning: ‘ret’ may be used uninitialized in this function

    triggers because GCC correctly notices that in the ctcount == 0 &&
    dtcount != 0 input condition case this function can return an undefined
    value, if the second loop fails.

    Remove the shadowed 'ret' variable from the second loop that was probably
    unintended.

    Signed-off-by: Ingo Molnar
    Signed-off-by: Herbert Xu

    Ingo Molnar
     
  • This patch adds a test for the requirement that all crc32c algorithms
    shall store the partial result in the first four bytes of the descriptor
    context.

    Signed-off-by: Herbert Xu

    Herbert Xu
     
  • The FIPS specification requires that should self test for any supported
    crypto algorithm fail during operation in fips mode, we need to prevent
    the use of any crypto functionality until such time as the system can
    be re-initialized. Seems like the best way to handle that would be
    to panic the system if we were in fips mode and failed a self test.
    This patch implements that functionality. I've built and run it
    successfully.

    Signed-off-by: Neil Horman
    Signed-off-by: Herbert Xu

    Neil Horman
     

29 Aug, 2008

2 commits