Skip to content

Commit

Permalink
Merge pull request #283 from bizouarn/fix/namming
Browse files Browse the repository at this point in the history
Minor correction of XML comments and method renaming (UseEncrytionKey to UseEncryptionKey)
  • Loading branch information
mattosaurus authored Apr 8, 2024
2 parents 4eb7358 + 2cb1754 commit 86df3a0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions PgpCore.Tests/UnitTests/UnitTestsSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ public void DecryptStream_DecryptEncryptedStreamWithPreferredKey()
foreach (long keyId in keyIdsInPublicKeyRing)
{
// Act
encryptionKeys.UseEncrytionKey(keyId);
encryptionKeys.UseEncryptionKey(keyId);
using (Stream inputFileStream = testFactory.ContentStream)
using (Stream outputFileStream = testFactory.EncryptedContentFileInfo.Create())
pgpEncrypt.EncryptStream(inputFileStream, outputFileStream);
Expand Down Expand Up @@ -1300,7 +1300,7 @@ public void Verify_VerifyEncryptedAndSignedStreamForMultipleKeys()
.Where(key => key.IsEncryptionKey).Select(key => key.KeyId).ToArray();
foreach (long keyId in keyIdsInPublicKeyRing)
{
encryptionKeys.UseEncrytionKey(keyId);
encryptionKeys.UseEncryptionKey(keyId);
using (Stream inputFileStream = testFactory.ContentStream)
using (Stream outputFileStream = testFactory.EncryptedContentFileInfo.Create())
pgp.EncryptStreamAndSign(inputFileStream, outputFileStream);
Expand Down
2 changes: 1 addition & 1 deletion PgpCore/Models/EncryptionKeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public PgpPrivateKey FindSecretKey(long keyId)
/// If it cannot find the key, it will not change the preferred key.
/// </summary>
/// <param name="keyId">The keyId to find.</param>
public void UseEncrytionKey(long keyId)
public void UseEncryptionKey(long keyId)
{
foreach (PgpPublicKeyRingWithPreferredKey publicKeyRing in PublicKeyRings)
{
Expand Down
1 change: 0 additions & 1 deletion PgpCore/PGP.EncryptSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,6 @@ public void EncryptAndSign(
/// Encrypt and sign the string
/// </summary>
/// <param name="input">Plain string to be encrypted and signed</param>
/// <param name="armor">True, means a binary data representation as an ASCII-only text. Otherwise, false</param>
/// <param name="withIntegrityCheck">True to include integrity packet during signing</param>
/// <param name="name">Name of encrypted file in message, defaults to the input file name</param>
/// <param name="headers">Optional headers to be added to the output</param>
Expand Down
1 change: 0 additions & 1 deletion PgpCore/PGP.SignAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public async Task SignAsync(
/// Sign the string
/// </summary>
/// <param name="input">Plain string to be signed</param>
/// <param name="armor">True, means a binary data representation as an ASCII-only text. Otherwise, false</param>
/// <param name="name">Name of signed file in message, defaults to "name"</param>
/// <param name="headers">Optional headers to be added to the output</param>
/// <param name="oldFormat">True, to use old format for encryption if you need compatibility with PGP 2.6.x. Otherwise, false</param>
Expand Down
1 change: 0 additions & 1 deletion PgpCore/PGP.SignSync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public void Sign(
/// Sign the string
/// </summary>
/// <param name="input">Plain string to be signed</param>
/// <param name="armor">True, means a binary data representation as an ASCII-only text. Otherwise, false</param>
/// <param name="name">Name of signed file in message, defaults to "name"</param>
/// <param name="headers">Optional headers to be added to the output</param>
/// <param name="oldFormat">True, to use old format for encryption if you need compatibility with PGP 2.6.x. Otherwise, false</param>
Expand Down

0 comments on commit 86df3a0

Please sign in to comment.