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

◆ DecodeCore()

static void System.Security.Cryptography.Asn1.RSAPrivateKeyAsn.DecodeCore ( ref AsnValueReader reader,
Asn1Tag expectedTag,
ReadOnlyMemory< byte > rebind,
out RSAPrivateKeyAsn decoded )
inlinestaticprivate

Definition at line 46 of file RSAPrivateKeyAsn.cs.

47 {
48 decoded = default(RSAPrivateKeyAsn);
49 AsnValueReader asnValueReader = reader.ReadSequence(expectedTag);
50 if (!asnValueReader.TryReadInt32(out decoded.Version))
51 {
52 asnValueReader.ThrowIfNotEmpty();
53 }
54 decoded.Modulus = asnValueReader.ReadInteger();
55 decoded.PublicExponent = asnValueReader.ReadInteger();
56 decoded.PrivateExponent = asnValueReader.ReadInteger();
57 decoded.Prime1 = asnValueReader.ReadInteger();
58 decoded.Prime2 = asnValueReader.ReadInteger();
59 decoded.Exponent1 = asnValueReader.ReadInteger();
60 decoded.Exponent2 = asnValueReader.ReadInteger();
61 decoded.Coefficient = asnValueReader.ReadInteger();
62 asnValueReader.ThrowIfNotEmpty();
63 }
bool TryReadInt32(out int value, Asn1Tag? expectedTag=null)
BigInteger ReadInteger(Asn1Tag? expectedTag=null)
AsnValueReader ReadSequence(Asn1Tag? expectedTag=null)

References System.Formats.Asn1.AsnValueReader.ReadInteger(), System.Formats.Asn1.AsnValueReader.ReadSequence(), System.Formats.Asn1.AsnValueReader.ThrowIfNotEmpty(), and System.Formats.Asn1.AsnValueReader.TryReadInt32().

Referenced by System.Security.Cryptography.Asn1.RSAPrivateKeyAsn.Decode().