Skip to content

Conversation

@carlossanlop
Copy link
Contributor

Total modified files: 3
- D:\dotnet-api-docs\xml\System.Security.Cryptography\RSAEncryptionPaddingMode.xml
- D:\dotnet-api-docs\xml\System.Security.Cryptography\RSASignaturePaddingMode.xml
- D:\dotnet-api-docs\xml\System.Security.Cryptography\HashAlgorithmName.xml

Total modified assemblies: 3
- System.Security.Cryptography.RSAEncryptionPaddingMode
- System.Security.Cryptography.RSASignaturePaddingMode
- System.Security.Cryptography.HashAlgorithmName

Total modified containers: 0

Total modified APIs: 5
- F:System.Security.Cryptography.RSAEncryptionPaddingMode.Pkcs1
- F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep
- F:System.Security.Cryptography.RSASignaturePaddingMode.Pkcs1
- F:System.Security.Cryptography.RSASignaturePaddingMode.Pss
- P:System.Security.Cryptography.HashAlgorithmName.Name

Total problematic APIs: 0

Total added exceptions: 0

Total modified individual elements: 5

@carlossanlop carlossanlop added new-content Indicates PRs that contain new articles waiting-on-reviews Indicates PRs that cannot be merged because of the lack of reviews 🏁 Release: .NET Core 2.x Identifies work items for the .NET Core 2.x releases labels Sep 14, 2019
@carlossanlop carlossanlop added this to the September 2019 milestone Sep 14, 2019
@carlossanlop carlossanlop self-assigned this Sep 14, 2019
## Remarks
May be `null` or empty to indicate that no hash algorithm is applicable.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null and empty have no special defined meaning on this type. It's simply a struct, and therefore can have been initialized to default.

Remove this remark.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a repetition of the <value> section, where it is better placed. This should be deleted, and the <value> section modified to reflect the comment by @bartonjs.

Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left some comments for you to address, @carlossanlop.

## Remarks
May be `null` or empty to indicate that no hash algorithm is applicable.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a repetition of the <value> section, where it is better placed. This should be deleted, and the <value> section modified to reflect the comment by @bartonjs.

<MemberValue>1</MemberValue>
<Docs>
<summary>Optimal Asymmetric Encryption Padding. It is recommended for new applications.</summary>
<remarks>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be deleted. It appears in the <MemberGroup> section, and individual enum <remarks> sections are suppressed from the build.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see a MemberGroup, but I think you meant the general remark for the whole Type, @rpetrusha. I'll remove it.

<MemberValue>0</MemberValue>
<Docs>
<summary>PKCS #1 v1.5. It is supported for compatibility with existing applications.</summary>
<remarks>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similarly, this should be deleted.

<MemberValue>0</MemberValue>
<Docs>
<summary>PKCS #1 v1.5</summary>
<remarks>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be deleted. See above.

<MemberValue>1</MemberValue>
<Docs>
<summary>Probabilistic Signature Scheme</summary>
<remarks>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be deleted; see above. The PSS correction is already present in the text.

<Docs>
<summary>Gets the underlying string representation of the algorithm name.</summary>
<value>The string representation of the algorithm name, or <see langword="null" /> or <see cref="F:System.String.Empty" /> if no hash algorithm is available.</value>
<value>The string representation of the algorithm name, or <see langword="default" /> if no hash algorithm is available.</value>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartonjs I addressed your comment about null and empty, by removing the remark and (as suggested by @rpetrusha) modifying the value: substituted null and empty with default. Please confirm this was the correct change.

Copy link
Member

@bartonjs bartonjs Sep 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd just leave it as it is entirely, or delete everything in the "or" clause.

Like all null values it's "do nothing", "do the default thing", or "be invalid", determined by the called method.

`Pkcs1` corresponds to the RSASSA-PKCS1-v1.5 signature scheme of the [PKCS #1: RSA Encryption Standard](http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-rsa-cryptography-standard.htm). It is supported for compatibility with existing applications.
`Pss` corresponds to the Probabilistic Signature Scheme (PSS) of the [PKCS #1: RSA Encryption Standard](http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-rsa-cryptography-standard.htm). It is recommended for new applications.
`Pss` corresponds to the Probabilistic Signature Scheme (RSASSA-PSS) of the [PKCS #1: RSA Encryption Standard](http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-rsa-cryptography-standard.htm). It is recommended for new applications.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bartonjs I addressed the suggestion you originally gave me in the remark for the PPS enum value by adding your acronym to the general description found in the enum Type. Please let me know if this was the correct change to make.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Probabilistic Signature Scheme" is "PSS". RSA-signature-using-PSS is "RSASSA-PSS" (RSA Signature Scheme with Appendix - Probabilistic Signature Scheme).

So where this is used, it was correct as-is, and is incorrect with the change.

If we want to include RSASSA-PSS in the string, it'd be something like

Suggested change
`Pss` corresponds to the Probabilistic Signature Scheme (RSASSA-PSS) of the [PKCS #1: RSA Encryption Standard](http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-rsa-cryptography-standard.htm). It is recommended for new applications.
`Pss` corresponds to the RSASSA-PSS signature scheme of the [PKCS #1: RSA Encryption Standard](http://www.emc.com/emc-plus/rsa-labs/standards-initiatives/pkcs-rsa-cryptography-standard.htm). It is recommended for new applications.

I'd just leave it as-is.

@rpetrusha
Copy link

I'll merge this now, @carlossanlop.

@rpetrusha rpetrusha merged commit b3254c4 into dotnet:master Sep 24, 2019
@carlossanlop carlossanlop deleted the SecurityCryptography2X branch September 24, 2019 23:25
@mairaw mairaw removed the waiting-on-reviews Indicates PRs that cannot be merged because of the lack of reviews label Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏁 Release: .NET Core 2.x Identifies work items for the .NET Core 2.x releases new-content Indicates PRs that contain new articles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants