Skip to content

PKCS#7 and CMS overlap heavily - deprecate (part of) PKCS7 #18919

@DDvO

Description

@DDvO

As already mentioned in #18915, there is enormous overlap between the implementations of CMS and PKCS#7, which is no wonder because these two standards are basically the same.
This causes confusion and extra maintenance effort and is evidently prone to inconsistencies.

Would be good to

  • consolidate the two implementations
  • deprecate the export of detailed data structures for PKCS#7 and many related functions.

Looks like the issue originates from

commit 5a9a4b299c0140ccdd5cc61fef701935a5931842
Author: Dr. Stephen Henson <[email protected]>
Date:   Sun Dec 5 00:40:59 1999 +0000

    Merge in my S/MIME library and utility.

and

commit 8931b30d8478b0bd24af251fac64e7b0bf121369
Author: Dr. Stephen Henson <[email protected]>
Date:   Wed Mar 12 21:14:28 2008 +0000

    And so it begins...
    
    Initial support for CMS.
    
    Add zlib compression BIO.
    
    Add AES key wrap implementation.
    
    Generalize S/MIME MIME code to support CMS and/or PKCS7.

while the PKCS7 implementation was of course older:

commit d02b48c63a58ea4367a0e905979f140b7d090f86
Author: Ralf S. Engelschall <[email protected]>
Date:   Mon Dec 21 10:52:47 1998 +0000

    Import of old SSLeay release: SSLeay 0.8.1b

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: masterApplies to master branchtriaged: featureThe issue/pr requests/adds a feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions