1. 03 Mar, 2016 2 commits
    • David Howells's avatar
      X.509: Make algo identifiers text instead of enum · 4e8ae72a
      David Howells authored
      Make the identifier public key and digest algorithm fields text instead of
      enum.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      4e8ae72a
    • David Howells's avatar
      akcipher: Move the RSA DER encoding check to the crypto layer · d43de6c7
      David Howells authored
      Move the RSA EMSA-PKCS1-v1_5 encoding from the asymmetric-key public_key
      subtype to the rsa crypto module's pkcs1pad template.  This means that the
      public_key subtype no longer has any dependencies on public key type.
      
      To make this work, the following changes have been made:
      
       (1) The rsa pkcs1pad template is now used for RSA keys.  This strips off the
           padding and returns just the message hash.
      
       (2) In a previous patch, the pkcs1pad template gained an optional second
           parameter that, if given, specifies the hash used.  We now give this,
           and pkcs1pad checks the encoded message E(M) for the EMSA-PKCS1-v1_5
           encoding and verifies that the correct digest OID is present.
      
       (3) The crypto driver in crypto/asymmetric_keys/rsa.c is now reduced to
           something that doesn't care about what the encryption actually does
           and and has been merged into public_key.c.
      
       (4) CONFIG_PUBLIC_KEY_ALGO_RSA is gone.  Module signing must set
           CONFIG_CRYPTO_RSA=y instead.
      
      Thoughts:
      
       (*) Should the encoding style (eg. raw, EMSA-PKCS1-v1_5) also be passed to
           the padding template?  Should there be multiple padding templates
           registered that share most of the code?
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
      Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      d43de6c7
  2. 18 Feb, 2016 1 commit
  3. 16 Feb, 2016 3 commits
  4. 10 Feb, 2016 1 commit
  5. 09 Feb, 2016 1 commit
  6. 06 Feb, 2016 6 commits
  7. 01 Feb, 2016 2 commits
  8. 27 Jan, 2016 2 commits
  9. 25 Jan, 2016 5 commits
  10. 18 Jan, 2016 5 commits
  11. 22 Dec, 2015 1 commit
  12. 20 Dec, 2015 1 commit
  13. 11 Dec, 2015 1 commit
  14. 09 Dec, 2015 3 commits
  15. 21 Oct, 2015 1 commit
    • David Howells's avatar
      KEYS: Merge the type-specific data with the payload data · 146aa8b1
      David Howells authored
      Merge the type-specific data with the payload data into one four-word chunk
      as it seems pointless to keep them separate.
      
      Use user_key_payload() for accessing the payloads of overloaded
      user-defined keys.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      cc: linux-cifs@vger.kernel.org
      cc: ecryptfs@vger.kernel.org
      cc: linux-ext4@vger.kernel.org
      cc: linux-f2fs-devel@lists.sourceforge.net
      cc: linux-nfs@vger.kernel.org
      cc: ceph-devel@vger.kernel.org
      cc: linux-ima-devel@lists.sourceforge.net
      146aa8b1
  16. 20 Oct, 2015 1 commit
  17. 14 Oct, 2015 1 commit
  18. 21 Aug, 2015 2 commits
  19. 17 Aug, 2015 1 commit