Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsPublic()

static bool System.Security.Cryptography.DSACryptoServiceProvider.IsPublic ( byte[] keyBlob)
inlinestaticprivate

Definition at line 355 of file DSACryptoServiceProvider.cs.

356 {
357 if (keyBlob == null)
358 {
359 throw new ArgumentNullException("keyBlob");
360 }
361 if (keyBlob[0] != 6)
362 {
363 return false;
364 }
365 if ((keyBlob[11] != 49 && keyBlob[11] != 51) || keyBlob[10] != 83 || keyBlob[9] != 83 || keyBlob[8] != 68)
366 {
367 return false;
368 }
369 return true;
370 }

Referenced by System.Security.Cryptography.DSACryptoServiceProvider.ImportCspBlob().