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

◆ ReadRequiredElement()

static byte[] System.Security.Cryptography.RSA.ReadRequiredElement ( ref XmlKeyHelper::ParseState state,
string name,
int sizeHint = -1 )
inlinestaticprivateinherited

Definition at line 677 of file RSA.cs.

678 {
679 byte[] array = XmlKeyHelper.ReadCryptoBinary(ref state, name, sizeHint);
680 if (array == null)
681 {
682 throw new CryptographicException(System.SR.Format(System.SR.Cryptography_InvalidFromXmlString, "RSA", name));
683 }
684 return array;
685 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Cryptography_InvalidFromXmlString
Definition SR.cs:84
Definition SR.cs:7

References System.array, System.SR.Cryptography_InvalidFromXmlString, System.SR.Format(), System.Security.Cryptography.XmlKeyHelper.ReadCryptoBinary(), and System.state.

Referenced by System.Security.Cryptography.RSA.FromXmlString().