summaryrefslogtreecommitdiffstats
path: root/include/linux/oid_registry.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2015-08-30 16:59:57 +0100
committerJames Morris <james.l.morris@oracle.com>2015-09-01 09:59:20 +1000
commit07f081fb5057b2ea98baeca3a47bf0eb33e94aa1 (patch)
treeb4cbe019bccb10a706b7452823377dae43d4f3c3 /include/linux/oid_registry.h
parent3f1d44ae640172482a8c0125efe9ca93331b056b (diff)
downloadlinux-stable-07f081fb5057b2ea98baeca3a47bf0eb33e94aa1.tar.gz
linux-stable-07f081fb5057b2ea98baeca3a47bf0eb33e94aa1.tar.bz2
linux-stable-07f081fb5057b2ea98baeca3a47bf0eb33e94aa1.zip
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>
Diffstat (limited to 'include/linux/oid_registry.h')
-rw-r--r--include/linux/oid_registry.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/oid_registry.h b/include/linux/oid_registry.h
index 93e0ff92fb9b..d2fa9ca42e9a 100644
--- a/include/linux/oid_registry.h
+++ b/include/linux/oid_registry.h
@@ -63,6 +63,9 @@ enum OID {
OID_certAuthInfoAccess, /* 1.3.6.1.5.5.7.1.1 */
OID_sha1, /* 1.3.14.3.2.26 */
OID_sha256, /* 2.16.840.1.101.3.4.2.1 */
+ OID_sha384, /* 2.16.840.1.101.3.4.2.2 */
+ OID_sha512, /* 2.16.840.1.101.3.4.2.3 */
+ OID_sha224, /* 2.16.840.1.101.3.4.2.4 */
/* Distinguished Name attribute IDs [RFC 2256] */
OID_commonName, /* 2.5.4.3 */