diff options
Diffstat (limited to 'crypto/src/openssl/MiscPemGenerator.cs')
-rw-r--r-- | crypto/src/openssl/MiscPemGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/openssl/MiscPemGenerator.cs b/crypto/src/openssl/MiscPemGenerator.cs index 568465fe4..443e446f7 100644 --- a/crypto/src/openssl/MiscPemGenerator.cs +++ b/crypto/src/openssl/MiscPemGenerator.cs @@ -197,7 +197,7 @@ namespace Org.BouncyCastle.OpenSsl dekAlgName = "DES-EDE3-CBC"; } - int ivLength = dekAlgName.StartsWith("AES-") ? 16 : 8; + int ivLength = Platform.StartsWith(dekAlgName, "AES-") ? 16 : 8; byte[] iv = new byte[ivLength]; random.NextBytes(iv); |