Skip to content

Commit

Permalink
Display keyids in hex for trace messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Meddington committed Nov 10, 2015
1 parent fc7a330 commit 6a3b41b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Deja.Crypto/BcPgp/PgpCrypto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public PgpPublicKey GetPublicKeyForEncryption(string email)

public PgpPublicKey GetPublicKey(long keyId)
{
logger.Debug("GetPublicKey: {0}", keyId);
logger.Debug("GetPublicKey: {0:X}", keyId);

using (var inputStream = File.OpenRead(Context.PublicKeyRingFile))
using (var decodeStream = PgpUtilities.GetDecoderStream(inputStream))
Expand All @@ -406,7 +406,7 @@ public PgpPublicKey GetPublicKey(long keyId)

public PgpPublicKey GetMasterPublicKey(long keyId)
{
logger.Debug("GetMasterPublicKey: {0}", keyId);
logger.Debug("GetMasterPublicKey: {0:X}", keyId);

using (var inputStream = File.OpenRead(Context.PublicKeyRingFile))
using (var decodeStream = PgpUtilities.GetDecoderStream(inputStream))
Expand Down

0 comments on commit 6a3b41b

Please sign in to comment.