525 {
526 global::Interop.BCrypt.KeyBlobMagicNumber magic = (global::Interop.BCrypt.KeyBlobMagicNumber)BitConverter.ToInt32(
rsaBlob, 0);
528 if (
rsaBlob.Length <
sizeof(global::Interop.BCrypt.BCRYPT_RSAKEY_BLOB))
529 {
530 throw global::Interop.NCrypt.ErrorCode.E_FAIL.ToCryptographicException();
531 }
533 {
534 global::Interop.BCrypt.BCRYPT_RSAKEY_BLOB*
ptr2 = (global::Interop.BCrypt.BCRYPT_RSAKEY_BLOB*)
ptr;
535 int offset =
sizeof(global::Interop.BCrypt.BCRYPT_RSAKEY_BLOB);
539 {
546 }
547 }
548 }
static void CheckMagicValueOfKey(global::Interop.BCrypt.KeyBlobMagicNumber magic, bool includePrivateParameters)