<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/crypto/asymmetric_keys, branch linux-5.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-03-26T08:41:59Z</updated>
<entry>
<title>x509: Add OID for NIST P384 and extend parser for it</title>
<updated>2021-03-26T08:41:59Z</updated>
<author>
<name>Saulo Alessandre</name>
</author>
<published>2021-03-16T21:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2a8e615436de4cd59a7b0af43590ede899906bdf'/>
<id>urn:sha1:2a8e615436de4cd59a7b0af43590ede899906bdf</id>
<content type='text'>
Prepare the x509 parser to accept NIST P384 certificates and add the
OID for ansip384r1, which is the identifier for NIST P384.

Summary of changes:

* crypto/asymmetric_keys/x509_cert_parser.c
  - prepare x509 parser to load NIST P384

* include/linux/oid_registry.h
  - add OID_ansip384r1

Signed-off-by: Saulo Alessandre &lt;saulo.alessandre@tse.jus.br&gt;
Tested-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>x509: Add support for parsing x509 certs with ECDSA keys</title>
<updated>2021-03-26T08:41:59Z</updated>
<author>
<name>Stefan Berger</name>
</author>
<published>2021-03-16T21:07:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=299f561a66939debba70e6d7c67aa01ed32613d9'/>
<id>urn:sha1:299f561a66939debba70e6d7c67aa01ed32613d9</id>
<content type='text'>
Add support for parsing of x509 certificates that contain ECDSA keys,
such as NIST P256, that have been signed by a CA using any of the
current SHA hash algorithms.

Cc: David Howells &lt;dhowells@redhat.com&gt;
Cc: keyrings@vger.kernel.org
Signed-off-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>x509: Detect sm2 keys by their parameters OID</title>
<updated>2021-03-26T08:41:58Z</updated>
<author>
<name>Stefan Berger</name>
</author>
<published>2021-03-16T21:07:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d1a303e8616c5ba1260722bb9068bbc0d1704847'/>
<id>urn:sha1:d1a303e8616c5ba1260722bb9068bbc0d1704847</id>
<content type='text'>
Detect whether a key is an sm2 type of key by its OID in the parameters
array rather than assuming that everything under OID_id_ecPublicKey
is sm2, which is not the case.

Cc: David Howells &lt;dhowells@redhat.com&gt;
Cc: keyrings@vger.kernel.org
Signed-off-by: Stefan Berger &lt;stefanb@linux.ibm.com&gt;
Reviewed-by: Tianjia Zhang &lt;tianjia.zhang@linux.alibaba.com&gt;
Tested-by: Tianjia Zhang &lt;tianjia.zhang@linux.alibaba.com&gt;
Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
</content>
</entry>
<entry>
<title>Merge tag 'keys-misc-20210126' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs</title>
<updated>2021-02-24T00:09:23Z</updated>
<author>
<name>Linus Torvalds</name>
</author>
<published>2021-02-24T00:09:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c03c21ba6f4e95e406a1a7b4c34ef334b977c194'/>
<id>urn:sha1:c03c21ba6f4e95e406a1a7b4c34ef334b977c194</id>
<content type='text'>
Pull keyring updates from David Howells:
 "Here's a set of minor keyrings fixes/cleanups that I've collected from
  various people for the upcoming merge window.

  A couple of them might, in theory, be visible to userspace:

   - Make blacklist_vet_description() reject uppercase letters as they
     don't match the all-lowercase hex string generated for a blacklist
     search.

     This may want reconsideration in the future, but, currently, you
     can't add to the blacklist keyring from userspace and the only
     source of blacklist keys generates lowercase descriptions.

   - Fix blacklist_init() to use a new KEY_ALLOC_* flag to indicate that
     it wants KEY_FLAG_KEEP to be set rather than passing KEY_FLAG_KEEP
     into keyring_alloc() as KEY_FLAG_KEEP isn't a valid alloc flag.

     This isn't currently a problem as the blacklist keyring isn't
     currently writable by userspace.

  The rest of the patches are cleanups and I don't think they should
  have any visible effect"

* tag 'keys-misc-20210126' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
  watch_queue: rectify kernel-doc for init_watch()
  certs: Replace K{U,G}IDT_INIT() with GLOBAL_ROOT_{U,G}ID
  certs: Fix blacklist flag type confusion
  PKCS#7: Fix missing include
  certs: Fix blacklisted hexadecimal hash string check
  certs/blacklist: fix kernel doc interface issue
  crypto: public_key: Remove redundant header file from public_key.h
  keys: remove trailing semicolon in macro definition
  crypto: pkcs7: Use match_string() helper to simplify the code
  PKCS#7: drop function from kernel-doc pkcs7_validate_trust_one
  encrypted-keys: Replace HTTP links with HTTPS ones
  crypto: asymmetric_keys: fix some comments in pkcs7_parser.h
  KEYS: remove redundant memset
  security: keys: delete repeated words in comments
  KEYS: asymmetric: Fix kerneldoc
  security/keys: use kvfree_sensitive()
  watch_queue: Drop references to /dev/watch_queue
  keys: Remove outdated __user annotations
  security: keys: Fix fall-through warnings for Clang
</content>
</entry>
<entry>
<title>keys: Update comment for restrict_link_by_key_or_keyring_chain</title>
<updated>2021-02-16T08:40:27Z</updated>
<author>
<name>Andrew Zaborowski</name>
</author>
<published>2021-01-04T16:40:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=40d32b59e37346fe89d27f83279ad81cd7dcc4a5'/>
<id>urn:sha1:40d32b59e37346fe89d27f83279ad81cd7dcc4a5</id>
<content type='text'>
Add the bit of information that makes
restrict_link_by_key_or_keyring_chain different from
restrict_link_by_key_or_keyring to the inline docs comment.

Signed-off-by: Andrew Zaborowski &lt;andrew.zaborowski@intel.com&gt;
Acked-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;
Signed-off-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;
</content>
</entry>
<entry>
<title>crypto: pkcs7: Use match_string() helper to simplify the code</title>
<updated>2021-01-21T16:16:09Z</updated>
<author>
<name>YueHaibing</name>
</author>
<published>2020-09-02T14:07:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3c0940c4ff078064b9e67f52a18cd543ad467fb3'/>
<id>urn:sha1:3c0940c4ff078064b9e67f52a18cd543ad467fb3</id>
<content type='text'>
match_string() returns the array index of a matching string.
Use it instead of the open-coded implementation.

Signed-off-by: YueHaibing &lt;yuehaibing@huawei.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Reviewed-by: Ben Boeckel &lt;mathstuf@gmail.com&gt;
</content>
</entry>
<entry>
<title>PKCS#7: drop function from kernel-doc pkcs7_validate_trust_one</title>
<updated>2021-01-21T16:16:09Z</updated>
<author>
<name>Alex Shi</name>
</author>
<published>2020-11-13T08:58:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d13fc8747218c1a5c7bdf69c54a4c64ea52f0d81'/>
<id>urn:sha1:d13fc8747218c1a5c7bdf69c54a4c64ea52f0d81</id>
<content type='text'>
The function is a static function, so no needs add into kernel-doc. and
we could avoid warning:
crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or
member 'pkcs7' not described in 'pkcs7_validate_trust_one'
crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or
member 'sinfo' not described in 'pkcs7_validate_trust_one'
crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or
member 'trust_keyring' not described in 'pkcs7_validate_trust_one'

Signed-off-by: Alex Shi &lt;alex.shi@linux.alibaba.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Reviewed-by: Ben Boeckel &lt;mathstuf@gmail.com&gt;
Cc: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: keyrings@vger.kernel.org
Cc: linux-crypto@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
</content>
</entry>
<entry>
<title>crypto: asymmetric_keys: fix some comments in pkcs7_parser.h</title>
<updated>2021-01-21T16:16:09Z</updated>
<author>
<name>Randy Dunlap</name>
</author>
<published>2020-07-19T18:07:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1539dd785a1c7be294fcdfaafc3137dab8321806'/>
<id>urn:sha1:1539dd785a1c7be294fcdfaafc3137dab8321806</id>
<content type='text'>
Drop the doubled word "the" in a comment.
Change "THis" to "This".

Signed-off-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Reviewed-by: Ben Boeckel &lt;mathstuf@gmail.com&gt;
Cc: keyrings@vger.kernel.org
</content>
</entry>
<entry>
<title>KEYS: asymmetric: Fix kerneldoc</title>
<updated>2021-01-21T16:16:09Z</updated>
<author>
<name>Krzysztof Kozlowski</name>
</author>
<published>2020-10-29T15:48:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=60f0f0b3cdfda667a8d1897b3004173a582bcd72'/>
<id>urn:sha1:60f0f0b3cdfda667a8d1897b3004173a582bcd72</id>
<content type='text'>
Fix W=1 compile warnings (invalid kerneldoc):

    crypto/asymmetric_keys/asymmetric_type.c:160: warning: Function parameter or member 'kid1' not described in 'asymmetric_key_id_same'
    crypto/asymmetric_keys/asymmetric_type.c:160: warning: Function parameter or member 'kid2' not described in 'asymmetric_key_id_same'
    crypto/asymmetric_keys/asymmetric_type.c:160: warning: Excess function parameter 'kid_1' description in 'asymmetric_key_id_same'
    crypto/asymmetric_keys/asymmetric_type.c:160: warning: Excess function parameter 'kid_2' description in 'asymmetric_key_id_same'

Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Reviewed-by: Ben Boeckel &lt;mathstuf@gmail.com&gt;
Reviewed-by: Jarkko Sakkinen &lt;jarkko.sakkinen@iki.fi&gt;
</content>
</entry>
<entry>
<title>X.509: Fix crash caused by NULL pointer</title>
<updated>2021-01-20T19:33:51Z</updated>
<author>
<name>Tianjia Zhang</name>
</author>
<published>2021-01-19T00:13:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7178a107f5ea7bdb1cc23073234f0ded0ef90ec7'/>
<id>urn:sha1:7178a107f5ea7bdb1cc23073234f0ded0ef90ec7</id>
<content type='text'>
On the following call path, `sig-&gt;pkey_algo` is not assigned
in asymmetric_key_verify_signature(), which causes runtime
crash in public_key_verify_signature().

  keyctl_pkey_verify
    asymmetric_key_verify_signature
      verify_signature
        public_key_verify_signature

This patch simply check this situation and fixes the crash
caused by NULL pointer.

Fixes: 215525639631 ("X.509: support OSCCA SM2-with-SM3 certificate verification")
Reported-by: Tobias Markus &lt;tobias@markus-regensburg.de&gt;
Signed-off-by: Tianjia Zhang &lt;tianjia.zhang@linux.alibaba.com&gt;
Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Reviewed-and-tested-by: Toke Høiland-Jørgensen &lt;toke@redhat.com&gt;
Tested-by: João Fonseca &lt;jpedrofonseca@ua.pt&gt;
Acked-by: Jarkko Sakkinen &lt;jarkko@kernel.org&gt;
Cc: stable@vger.kernel.org # v5.10+
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
