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.