1. 17 7月, 2015 3 次提交
  2. 14 7月, 2015 1 次提交
  3. 07 7月, 2015 1 次提交
  4. 17 6月, 2015 4 次提交
  5. 09 6月, 2015 1 次提交
  6. 04 6月, 2015 4 次提交
  7. 25 5月, 2015 1 次提交
  8. 11 5月, 2015 1 次提交
  9. 01 5月, 2015 2 次提交
    • D
      crypto: testmgr - Wrap the LHS in expressions of the form !x == y · 09e21784
      David Howells 提交于
      In the test manager, there are a number of if-statements with expressions of
      the form !x == y that incur warnings with gcc-5 of the following form:
      
      ../crypto/testmgr.c: In function '__test_aead':
      ../crypto/testmgr.c:523:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
         if (!ret == template[i].fail) {
                  ^
      
      By converting the 'fail' member of struct aead_testvec and struct
      cipher_testvec to a bool, we can get rid of the warnings.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      09e21784
    • D
      crypto: pcomp - Constify (de)compression parameters · f94a3597
      David Howells 提交于
      In testmgr, struct pcomp_testvec takes a non-const 'params' field, which is
      pointed to a const deflate_comp_params or deflate_decomp_params object.  With
      gcc-5 this incurs the following warnings:
      
      In file included from ../crypto/testmgr.c:44:0:
      ../crypto/testmgr.h:28736:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_comp_params,
                   ^
      ../crypto/testmgr.h:28748:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_comp_params,
                   ^
      ../crypto/testmgr.h:28776:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_decomp_params,
                   ^
      ../crypto/testmgr.h:28800:13: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-array-qualifiers]
         .params = &deflate_decomp_params,
                   ^
      
      Fix this by making the parameters pointer const and constifying the things
      that use it.
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      f94a3597
  10. 29 8月, 2014 1 次提交
  11. 01 8月, 2014 1 次提交
  12. 23 7月, 2014 1 次提交
  13. 21 6月, 2014 1 次提交
  14. 20 6月, 2014 1 次提交
    • S
      crypto: drbg - DRBG testmgr test vectors · 3332ee2a
      Stephan Mueller 提交于
      All types of the DRBG (CTR, HMAC, Hash) are covered with test vectors.
      In addition, all permutations of use cases of the DRBG are covered:
      
              * with and without predition resistance
              * with and without additional information string
              * with and without personalization string
      
      As the DRBG implementation is agnositc of the specific backend cipher,
      only test vectors for one specific backend cipher is used. For example:
      the Hash DRBG uses the same code paths irrespectively of using SHA-256
      or SHA-512. Thus, the test vectors for SHA-256 cover the testing of all
      DRBG code paths of SHA-512.
      Signed-off-by: NStephan Mueller <smueller@chronox.de>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      3332ee2a
  15. 22 5月, 2014 1 次提交
    • N
      crypto: testmgr - add aead cbc des, des3_ede tests · 5208ed2c
      Nitesh Lal 提交于
      Test vectors were taken from existing test for
      CBC(DES3_EDE). Associated data has been added to test vectors.
      HMAC computed with Crypto++ has been used. Following algos have
      been covered.
      
              (a) "authenc(hmac(sha1),cbc(des))"
              (b) "authenc(hmac(sha1),cbc(des3_ede))"
              (c) "authenc(hmac(sha224),cbc(des))"
              (d) "authenc(hmac(sha224),cbc(des3_ede))"
              (e) "authenc(hmac(sha256),cbc(des))"
              (f) "authenc(hmac(sha256),cbc(des3_ede))"
              (g) "authenc(hmac(sha384),cbc(des))"
              (h) "authenc(hmac(sha384),cbc(des3_ede))"
              (i) "authenc(hmac(sha512),cbc(des))"
              (j) "authenc(hmac(sha512),cbc(des3_ede))"
      Signed-off-by: NVakul Garg <vakul@freescale.com>
      [NiteshNarayanLal@freescale.com: added hooks for the missing algorithms test and tested the patch]
      Signed-off-by: NNitesh Lal <NiteshNarayanLal@freescale.com>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      5208ed2c
  16. 16 4月, 2014 2 次提交
  17. 21 3月, 2014 1 次提交
  18. 07 9月, 2013 1 次提交
  19. 24 7月, 2013 1 次提交
  20. 24 5月, 2013 1 次提交
  21. 25 4月, 2013 3 次提交
  22. 21 2月, 2013 1 次提交
  23. 06 12月, 2012 2 次提交
  24. 24 10月, 2012 4 次提交