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

◆ Decode() [2/4]

static System.Security.Cryptography.Asn1.ECPrivateKey System.Security.Cryptography.Asn1.ECPrivateKey.Decode ( Asn1Tag expectedTag,
ReadOnlyMemory< byte > encoded,
AsnEncodingRules ruleSet )
inlinestaticpackage

Definition at line 20 of file ECPrivateKey.cs.

21 {
22 try
23 {
25 DecodeCore(ref reader, expectedTag, encoded, out var decoded);
26 reader.ThrowIfNotEmpty();
27 return decoded;
28 }
29 catch (AsnContentException inner)
30 {
31 throw new CryptographicException(System.SR.Cryptography_Der_Invalid_Encoding, inner);
32 }
33 }
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
Definition SR.cs:7
unsafe ReadOnlySpan< T > Span
static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory< byte > rebind, out ECPrivateKey decoded)

References System.SR.Cryptography_Der_Invalid_Encoding, System.Security.Cryptography.Asn1.ECPrivateKey.DecodeCore(), System.ReadOnlyMemory< T >.Span, and System.Formats.Asn1.AsnValueReader.ThrowIfNotEmpty().