<PackageReference Include="BouncyCastle.Cryptography" Version="2.8.0-beta.349" />

Org.BouncyCastle.Crypto.Utilities.OidCatalogue

static class OidCatalogue
Catalogue of content-encryption algorithm OIDs used where code only needs to identify the parameter form or block size family for an algorithm.
public static bool IsAead(DerObjectIdentifier algorithm)

Return whether the OID identifies an AEAD content-encryption algorithm whose parameters are encoded as GCMParameters or CCMParameters (i.e. a GCM or CCM algorithm). ChaCha20-Poly1305, whose parameters differ, is not included here; use IsAuthEnveloped for the full set of algorithms usable with CMS AuthEnvelopedData.

public static bool IsAuthEnveloped(DerObjectIdentifier algorithm)

Return whether the OID identifies a content-encryption algorithm that provides authenticated encryption and so can be used with CMS AuthEnvelopedData (RFC 5083): the GCM and CCM families plus ChaCha20-Poly1305.

public static bool IsCbc128(DerObjectIdentifier algorithm)

Return whether the OID identifies a CBC content-encryption algorithm with a 128-bit block size and an IV encoded as an octet string.

public static bool IsCbc64(DerObjectIdentifier algorithm)

Return whether the OID identifies a CBC content-encryption algorithm with a 64-bit block size (DES, triple-DES, RC2, CAST5, IDEA).

public static bool IsChaCha20Poly1305(DerObjectIdentifier algorithm)

Return whether the OID identifies the ChaCha20-Poly1305 AEAD content-encryption algorithm.

public static bool IsGcm(DerObjectIdentifier algorithm)

Return whether the OID identifies a GCM content-encryption algorithm whose parameters are encoded as GCMParameters.