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