summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
         }