You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bytebType=br.ReadByte();// BLOBHEADER.bType: Expected to be 0x6 (PUBLICKEYBLOB) or 0x7 (PRIVATEKEYBLOB), though there's no check for backward compat reasons.
19
+
bytebVersion=br.ReadByte();// BLOBHEADER.bVersion: Expected to be 0x2, though there's no check for backward compat reasons.
20
+
br.ReadUInt16();// BLOBHEADER.wReserved
21
+
intalgId=br.ReadInt32();// BLOBHEADER.aiKeyAlg
22
+
if(algId!=CALG_RSA_KEYX)
23
+
thrownewPlatformNotSupportedException();// The FCall this code was ported from supports other algid's but we're only porting what we use.
24
+
25
+
intmagic=br.ReadInt32();// RSAPubKey.magic: Expected to be 0x31415352 ('RSA1') or 0x32415352 ('RSA2')
0 commit comments