summaryrefslogtreecommitdiff
path: root/crypto/asymmetric_keys/pkcs7.asn1 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* PKCS#7: Support CMS messages also [RFC5652]David Howells2015-08-121-1/+9
| | | | | | | | Since CMS is an evolution of PKCS#7, with much of the ASN.1 being compatible, add support for CMS signed-data messages also [RFC5652 sec 5]. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-By: David Woodhouse <David.Woodhouse@intel.com>
* PKCS#7: Check content type and versionsDavid Howells2015-08-121-3/+3
| | | | | | | | | | | | | We only support PKCS#7 signed-data [RFC2315 sec 9] content at the top level, so reject anything else. Further, check that the version numbers in SignedData and SignerInfo are 1 in both cases. Note that we don't restrict the inner content type. In the PKCS#7 code we don't parse the data attached there, but merely verify the signature over it. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-By: David Woodhouse <David.Woodhouse@intel.com>
* PKCS#7: Implement a parser [RFC 2315]David Howells2014-07-081-0/+127
Implement a parser for a PKCS#7 signed-data message as described in part of RFC 2315. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Reviewed-by: Kees Cook <keescook@chromium.org>