Skip to content

encryptedContent data in EncryptedContentInfo should be encoded as "implicit" not "explicit" #84

@grk-it

Description

@grk-it

The encryptedContent field in EncryptedContentInfo is "implicit" according to the rfc (https://www.rfc-editor.org/rfc/rfc5652).

EncryptedContentInfo ::= SEQUENCE {
contentType ContentType,
contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier,
encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }

However, marshalEncryptedContent() is emitting encryptedContent as EXPLICIT and it can't be parsed by strict parsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ARCHIVEDCLOSED at time of archiving

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions