465 {
467 fixed (byte* pbData = encodedDistinguishedName)
468 {
470 cRYPTOAPI_BLOB.cbData = encodedDistinguishedName.Length;
471 cRYPTOAPI_BLOB.pbData = pbData;
472 int num = global::Interop.Crypt32.CertNameToStr(65537, &cRYPTOAPI_BLOB, dwStrType, null, 0);
473 if (num == 0)
474 {
475 throw (-2146762476).ToCryptographicException();
476 }
479 fixed (char* psz = span2)
480 {
481 if (global::Interop.Crypt32.CertNameToStr(65537, &cRYPTOAPI_BLOB, dwStrType, psz, num) == 0)
482 {
483 throw (-2146762476).ToCryptographicException();
484 }
485 }
487 }
488 }
static CertNameStrTypeAndFlags MapNameToStrFlag(X500DistinguishedNameFlags flag)
Span< T > Slice(int start)