summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:46:18 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-05-24 20:46:18 +0700
commita3a07f74c2ae07228620cccb3c86d08d65586519 (patch)
treeac55767e867994893deee3d090ce264cf9da6ada /crypto/src
parentFix project files plus portability fixes (diff)
downloadBouncyCastle.NET-ed25519-a3a07f74c2ae07228620cccb3c86d08d65586519.tar.xz
Portability fixes
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/cms/CMSSignedHelper.cs2
-rw-r--r--crypto/src/openpgp/PgpObjectFactory.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/cms/CMSSignedHelper.cs b/crypto/src/cms/CMSSignedHelper.cs

index 97ca54182..6d17200d0 100644 --- a/crypto/src/cms/CMSSignedHelper.cs +++ b/crypto/src/cms/CMSSignedHelper.cs
@@ -440,7 +440,7 @@ namespace Org.BouncyCastle.Cms public IX509Store GetCertificates(Asn1Set certificates) { - ArrayList certList = new ArrayList(); + IList certList = Platform.CreateArrayList(); if (certificates != null) { foreach (Asn1Encodable enc in certificates) diff --git a/crypto/src/openpgp/PgpObjectFactory.cs b/crypto/src/openpgp/PgpObjectFactory.cs
index c31cd221c..3abb6c945 100644 --- a/crypto/src/openpgp/PgpObjectFactory.cs +++ b/crypto/src/openpgp/PgpObjectFactory.cs
@@ -151,7 +151,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp PgpObject pgpObject; while ((pgpObject = NextPgpObject()) != null) { - if (type.IsAssignableFrom(pgpObject.GetType())) + if (type.IsInstanceOfType(pgpObject.GetType())) { result.Add(pgpObject); }