diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-01-20 17:55:07 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-01-20 17:55:07 +0700 |
commit | 27c1d7797c79cd799ba04132e0d4b571de509e24 (patch) | |
tree | c8ff0d7c6d188841553b08e2561a267488d917bb /crypto/src/asn1/smime/SMIMECapability.cs | |
parent | Align sig alg checks in X509Certificate, X509Crl (diff) | |
download | BouncyCastle.NET-ed25519-27c1d7797c79cd799ba04132e0d4b571de509e24.tar.xz |
Overhaul algorithm registries
Diffstat (limited to 'crypto/src/asn1/smime/SMIMECapability.cs')
-rw-r--r-- | crypto/src/asn1/smime/SMIMECapability.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/asn1/smime/SMIMECapability.cs b/crypto/src/asn1/smime/SMIMECapability.cs index 9b30c6dba..7b9255a46 100644 --- a/crypto/src/asn1/smime/SMIMECapability.cs +++ b/crypto/src/asn1/smime/SMIMECapability.cs @@ -1,6 +1,7 @@ using System; using Org.BouncyCastle.Asn1; +using Org.BouncyCastle.Asn1.Oiw; using Org.BouncyCastle.Asn1.Pkcs; namespace Org.BouncyCastle.Asn1.Smime @@ -18,7 +19,7 @@ namespace Org.BouncyCastle.Asn1.Smime /** * encryption algorithms preferences */ - public static readonly DerObjectIdentifier DesCbc = new DerObjectIdentifier("1.3.14.3.2.7"); + public static readonly DerObjectIdentifier DesCbc = OiwObjectIdentifiers.DesCbc; public static readonly DerObjectIdentifier DesEde3Cbc = PkcsObjectIdentifiers.DesEde3Cbc; public static readonly DerObjectIdentifier RC2Cbc = PkcsObjectIdentifiers.RC2Cbc; |