diff --git a/xml/System.Security.Cryptography.Pkcs/ContentInfo.xml b/xml/System.Security.Cryptography.Pkcs/ContentInfo.xml index b311f450e3e..2db44c1f45e 100644 --- a/xml/System.Security.Cryptography.Pkcs/ContentInfo.xml +++ b/xml/System.Security.Cryptography.Pkcs/ContentInfo.xml @@ -283,14 +283,12 @@ - An array of byte values that represents the encoded message from which to retrieve the outer content type. - The static method retrieves the outer content type of the encoded message represented by an array of byte values. - If the method succeeds, the method returns an object that contains the outer content type of the specified encoded message. - - If the method fails, it throws an exception. + An array of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type. + Retrieves the outer content type of an encoded CMS ContentInfo message. + The outer content type of the specified encoded CMS ContentInfo message. To be added. - A null reference was passed to a method that does not accept it as a valid argument. - An error occurred during a cryptographic operation. + is . + cannot be decoded as a valid CMS ContentInfo value. @@ -312,10 +310,11 @@ - To be added. - To be added. - To be added. + A read-only span of byte values that represents the encoded CMS ContentInfo message from which to retrieve the outer content type. + Retrieves the outer content type of an encoded CMS ContentInfo message. + The outer content type of the specified encoded CMS ContentInfo message. To be added. + cannot be decoded as a valid CMS ContentInfo value. diff --git a/xml/System.Security.Cryptography.Pkcs/SignedCms.xml b/xml/System.Security.Cryptography.Pkcs/SignedCms.xml index f83bde332d8..dedf8c1acbe 100644 --- a/xml/System.Security.Cryptography.Pkcs/SignedCms.xml +++ b/xml/System.Security.Cryptography.Pkcs/SignedCms.xml @@ -844,8 +844,8 @@ The following permissions are required to access the signature key: - Array of byte values that represents the encoded CMS/PKCS #7 message to be decoded. - The method decodes an encoded message. Upon successful decoding, the decoded information can be retrieved from the properties of the object. + An array of byte values that represents the encoded CMS/PKCS#7 message to be decoded. + Decodes an encoded message. - A null reference was passed to a method that does not accept it as a valid argument. - A cryptographic operation could not be completed. + is . + could not be decoded successfully. @@ -891,9 +891,12 @@ The following permissions are required to access the signature key: - To be added. To be added. + A read-only span of byte values that represents the encoded CMS/PKCS#7 message to be decoded. + Decodes an encoded message. To be added. + could not be decoded successfully. + diff --git a/xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml b/xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml index a710d53169b..828d3d5a90c 100644 --- a/xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml +++ b/xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml @@ -819,11 +819,28 @@ - To be added. - To be added. - To be added. - To be added. - To be added. + The name of a certificate file. + The password required to access the X.509 certificate data. + A bitwise combination of the enumeration values that control where and how to import the certificate. + Initializes a new instance of the class using a certificate file name, a password, and a key storage flag. + + [!IMPORTANT] +> Never hard code a password within your source code. Hard-coded passwords can be retrieved from an assembly using the [Ildasm.exe (IL Disassembler)](/dotnet/framework/tools/ildasm-exe-il-disassembler), a hex editor, or by simply opening up the assembly in a text editor such as Notepad.exe. + +If you create an certificate by specifying a PKCS7 signed file store for `fileName`, the is created for the certificate that signed the store rather than for any of the certificates within the store. + + ]]> + + An error with the certificate occurs. For example: + +- The certificate file does not exist. + +- The certificate is invalid. + +- The certificate's password is incorrect. diff --git a/xml/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtension.xml b/xml/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtension.xml index 60e241a3da2..ccc3c14fac8 100644 --- a/xml/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtension.xml +++ b/xml/System.Security.Cryptography.X509Certificates/X509SubjectKeyIdentifierExtension.xml @@ -168,9 +168,10 @@ - To be added. - To be added. - To be added. + A read-only span of bytes that represents data to use to create the extension. + + if the extension is critical; otherwise, . + Initializes a new instance of the class using a read-only span of bytes and a value that identifies whether the extension is critical. To be added.