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

◆ Decode() [1/8]

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

Definition at line 48 of file AlgorithmIdentifierAsn.cs.

49 {
50 try
51 {
53 DecodeCore(ref reader, expectedTag, encoded, out var decoded);
54 reader.ThrowIfNotEmpty();
55 return decoded;
56 }
57 catch (AsnContentException inner)
58 {
59 throw new CryptographicException(System.SR.Cryptography_Der_Invalid_Encoding, inner);
60 }
61 }
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 AlgorithmIdentifierAsn decoded)

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