Skip to content

Commit

Permalink
Fix one-shot CBC documentation (#55432)
Browse files Browse the repository at this point in the history
* Fix one-shot CBC documentation.

The CBC one-shot documentation made a few references to the ECB
one shots. This removes them and uses consistent language that is
used on the other one-shot methods.

* Change ECB to be consistent
  • Loading branch information
vcsjones authored Jul 10, 2021
1 parent 3b8b527 commit bea4304
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ public bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination,
/// <paramref name="paddingMode" /> is not a valid padding mode.
/// </exception>
/// <exception cref="CryptographicException">
/// <see cref="TryEncryptEcbCore" /> could not encrypt the plaintext.
/// The plaintext could not be encrypted successfully.
/// </exception>
/// <remarks>
/// This method's behavior is defined by <see cref="TryEncryptEcbCore" />.
Expand Down Expand Up @@ -842,7 +842,7 @@ public bool TryDecryptCbc(
/// that is exactly <see cref="BlockSize" /> in length, converted to bytes (<c>BlockSize / 8</c>).
/// </exception>
/// <exception cref="CryptographicException">
/// <see cref="TryEncryptEcbCore" /> could not encrypt the plaintext.
/// The plaintext could not be encrypted successfully.
/// </exception>
/// <remarks>
/// This method's behavior is defined by <see cref="TryEncryptCbcCore" />.
Expand Down Expand Up @@ -872,7 +872,7 @@ public byte[] EncryptCbc(byte[] plaintext, byte[] iv, PaddingMode paddingMode =
/// that is exactly <see cref="BlockSize" /> in length, converted to bytes (<c>BlockSize / 8</c>).
/// </exception>
/// <exception cref="CryptographicException">
/// <see cref="TryEncryptEcbCore" /> could not encrypt the plaintext.
/// The plaintext could not be encrypted successfully.
/// </exception>
/// <remarks>
/// This method's behavior is defined by <see cref="TryEncryptCbcCore" />.
Expand Down

0 comments on commit bea4304

Please sign in to comment.