From 1aa6a7b3b086ca2d768069a6ae85376f282e7b1d Mon Sep 17 00:00:00 2001 From: carlossanlop Date: Thu, 8 Aug 2019 10:15:41 -0700 Subject: [PATCH 1/3] Document 2 APIs in System.Security.Cryptography.DSACng --- xml/System.Security.Cryptography/DSACng.xml | 31 ++++++++++----------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/xml/System.Security.Cryptography/DSACng.xml b/xml/System.Security.Cryptography/DSACng.xml index 3bc9fb7f307..dbb4600ee60 100644 --- a/xml/System.Security.Cryptography/DSACng.xml +++ b/xml/System.Security.Cryptography/DSACng.xml @@ -171,10 +171,8 @@ Creates the digital signature for the specified data. The digital signature for the specified data. To be added. - - is . - - is shorter in length than the Q value of the DSA key . + is . + is shorter in length than the Q value of the DSA key . @@ -485,11 +483,11 @@ - To be added. - To be added. - To be added. - To be added. - To be added. + A read-only span of bytes containing the data to be signed. + The buffer where the digital signature is to be written. + When this method returns, the number of bytes that were written in . + Tries to create the digital signature for the specified data. + if the digital signature was created successfully; if the buffer was too small. To be added. @@ -561,16 +559,14 @@ The signed data. The digital signature to be verified. Verifies if the specified digital signature matches the specified data. - - if matches the signature computed using the specified data; otherwise, . + if matches the signature computed using the specified data; otherwise, . To be added. The parameter is . -or- The parameter is . - - is shorter in length than the Q value of the DSA key . + is shorter in length than the Q value of the DSA key. @@ -596,11 +592,12 @@ - To be added. - To be added. - To be added. - To be added. + A read-only span of bytes containing the signed data. + A read-only span of bytes containing the signature to be verified. + Verifies if the specified digital signature matches the specified data. + if matches the signature computed using the specified data; otherwise, . To be added. + is shorter in length than the Q value of the DSA key. From d8b41516e6bae3b9ffb8a097dff6a61b96695efc Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com> Date: Thu, 8 Aug 2019 13:00:00 -0700 Subject: [PATCH 2/3] suggestions Co-Authored-By: Eric StJohn Co-Authored-By: Ron Petrusha --- xml/System.Security.Cryptography/DSACng.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System.Security.Cryptography/DSACng.xml b/xml/System.Security.Cryptography/DSACng.xml index dbb4600ee60..1d781fdc840 100644 --- a/xml/System.Security.Cryptography/DSACng.xml +++ b/xml/System.Security.Cryptography/DSACng.xml @@ -483,7 +483,7 @@ - A read-only span of bytes containing the data to be signed. + A read-only span of bytes containing a hash of the data to be signed. The buffer where the digital signature is to be written. When this method returns, the number of bytes that were written in . Tries to create the digital signature for the specified data. @@ -595,10 +595,10 @@ A read-only span of bytes containing the signed data. A read-only span of bytes containing the signature to be verified. Verifies if the specified digital signature matches the specified data. - if matches the signature computed using the specified data; otherwise, . + if matches the signature computed using the specified data; otherwise, . To be added. is shorter in length than the Q value of the DSA key. - \ No newline at end of file + From 8f36009245dabcb24811cb325a5943149b46d964 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com> Date: Thu, 8 Aug 2019 14:28:47 -0700 Subject: [PATCH 3/3] suggestion by mairaw Co-Authored-By: Maira Wenzel --- xml/System.Security.Cryptography/DSACng.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Security.Cryptography/DSACng.xml b/xml/System.Security.Cryptography/DSACng.xml index 1d781fdc840..dd5d9ccf675 100644 --- a/xml/System.Security.Cryptography/DSACng.xml +++ b/xml/System.Security.Cryptography/DSACng.xml @@ -597,7 +597,7 @@ Verifies if the specified digital signature matches the specified data. if matches the signature computed using the specified data; otherwise, . To be added. - is shorter in length than the Q value of the DSA key. + is shorter in length than the Q value of the DSA key.