From f5ea6992d98995438b031a8667dbb859536dab36 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 9 Jul 2021 20:55:24 +0000 Subject: [PATCH 1/2] 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. --- .../src/System/Security/Cryptography/SymmetricAlgorithm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs b/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs index 857edc6d03c545..2d302d229b91eb 100644 --- a/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs +++ b/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs @@ -842,7 +842,7 @@ public bool TryDecryptCbc( /// that is exactly in length, converted to bytes (BlockSize / 8). /// /// - /// could not encrypt the plaintext. + /// The plaintext could not be encrypted successfully. /// /// /// This method's behavior is defined by . @@ -872,7 +872,7 @@ public byte[] EncryptCbc(byte[] plaintext, byte[] iv, PaddingMode paddingMode = /// that is exactly in length, converted to bytes (BlockSize / 8). /// /// - /// could not encrypt the plaintext. + /// The plaintext could not be encrypted successfully. /// /// /// This method's behavior is defined by . From c41458a2bb782fffd92c2509b100732df68bba7f Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Fri, 9 Jul 2021 21:01:31 +0000 Subject: [PATCH 2/2] Change ECB to be consistent --- .../src/System/Security/Cryptography/SymmetricAlgorithm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs b/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs index 2d302d229b91eb..f5485577c07071 100644 --- a/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs +++ b/src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/SymmetricAlgorithm.cs @@ -561,7 +561,7 @@ public bool TryDecryptEcb(ReadOnlySpan ciphertext, Span destination, /// is not a valid padding mode. /// /// - /// could not encrypt the plaintext. + /// The plaintext could not be encrypted successfully. /// /// /// This method's behavior is defined by .