]> git.baikalelectronics.ru Git - kernel.git/commit
PKCS#7: Add OIDs for sha224, sha284 and sha512 hash algos and use them
authorDavid Howells <dhowells@redhat.com>
Sun, 30 Aug 2015 15:59:57 +0000 (16:59 +0100)
committerJames Morris <james.l.morris@oracle.com>
Mon, 31 Aug 2015 23:59:20 +0000 (09:59 +1000)
commit1c55a40a1898d74a4b4389feaaaffa3dac202228
treeb4cbe019bccb10a706b7452823377dae43d4f3c3
parentf52c4c8e24d1aa5a8f463b0dbc48d4fd1af9ffa1
PKCS#7: Add OIDs for sha224, sha284 and sha512 hash algos and use them

Add OIDs for sha224, sha284 and sha512 hash algos and use them to select
the hashing algorithm.  Without this, something like the following error
might get written to dmesg:

[   31.829322] PKCS7: Unknown OID: [32] 2.16.840.1.101.3.4.2.3
[   31.829328] PKCS7: Unknown OID: [180] 2.16.840.1.101.3.4.2.3
[   31.829330] Unsupported digest algo: 55

Where the 55 on the third line is OID__NR indicating an unknown OID.

Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: James Morris <james.l.morris@oracle.com>
crypto/asymmetric_keys/mscode_parser.c
crypto/asymmetric_keys/pkcs7_parser.c
include/linux/oid_registry.h