Skip to content

Explicit tag on AuthEnvelopedData encryptedContent #2223

@stevemit

Description

@stevemit

BouncyCastle 1.83 produces an AuthEnvelopedData structure with an explicitly tagged authEncryptedContentInfo/encryptedContent, whereas RFC 5652 calls for it to be implicitly tagged.

I am using CMSAuthEnvelopedDataStreamGenerator with JceCMSContentEncryptorBuilder.

OpenSSL produces an implicit tag. Both BouncyCastle and OpenSSL process the AuthEnvelopedData structure with the explicit tag.
However, the issue can complicate diagnosing other interoperability problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions