diff options
Diffstat (limited to 'crypto/src/openssl/MiscPemGenerator.cs')
-rw-r--r-- | crypto/src/openssl/MiscPemGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/openssl/MiscPemGenerator.cs b/crypto/src/openssl/MiscPemGenerator.cs index cfbb5e96d..75d1e65b3 100644 --- a/crypto/src/openssl/MiscPemGenerator.cs +++ b/crypto/src/openssl/MiscPemGenerator.cs @@ -189,7 +189,7 @@ namespace Org.BouncyCastle.OpenSsl var headers = new List<PemHeader>(2); headers.Add(new PemHeader("Proc-Type", "4,ENCRYPTED")); - headers.Add(new PemHeader("DEK-Info", dekAlgName + "," + Hex.ToHexString(iv).ToUpperInvariant())); + headers.Add(new PemHeader("DEK-Info", dekAlgName + "," + Hex.ToHexString(iv, true))); return new PemObject(type, headers, encData); } @@ -249,7 +249,7 @@ namespace Org.BouncyCastle.OpenSsl var headers = new List<PemHeader>(2); headers.Add(new PemHeader("Proc-Type", "4,ENCRYPTED")); - headers.Add(new PemHeader("DEK-Info", dekAlgName + "," + Hex.ToHexString(iv).ToUpperInvariant())); + headers.Add(new PemHeader("DEK-Info", dekAlgName + "," + Hex.ToHexString(iv, true))); return new PemObject(type, headers, encData); } |