summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2022-03-23 13:23:59 +1100
committerDavid Hook <dgh@cryptoworkshop.com>2022-03-23 13:23:59 +1100
commit966154c2cbf2d27dbe6046143fcc14232761f4c6 (patch)
tree9d379ad849eec38ab127db43ceb63bb5bd02896f /crypto/src
parentFurther GCM updates (diff)
downloadBouncyCastle.NET-ed25519-966154c2cbf2d27dbe6046143fcc14232761f4c6.tar.xz
fixed case of IV to upper github #353
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/openssl/MiscPemGenerator.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/src/openssl/MiscPemGenerator.cs b/crypto/src/openssl/MiscPemGenerator.cs
index 4237adf8f..d875f49c1 100644
--- a/crypto/src/openssl/MiscPemGenerator.cs
+++ b/crypto/src/openssl/MiscPemGenerator.cs
@@ -200,7 +200,8 @@ namespace Org.BouncyCastle.OpenSsl
             IList headers = Platform.CreateArrayList(2);
 
             headers.Add(new PemHeader("Proc-Type", "4,ENCRYPTED"));
-            headers.Add(new PemHeader("DEK-Info", dekAlgName + "," + Hex.ToHexString(iv)));
+            headers.Add(new PemHeader("DEK-Info", dekAlgName + ","
+                          + Strings.ToUpperCase(Hex.ToHexString(iv))));
 
             return new PemObject(type, headers, encData);
         }