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

◆ Decode() [2/4]

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

Definition at line 16 of file PBEParameter.cs.

17 {
18 try
19 {
21 DecodeCore(ref reader, expectedTag, encoded, out var decoded);
22 reader.ThrowIfNotEmpty();
23 return decoded;
24 }
25 catch (AsnContentException inner)
26 {
27 throw new CryptographicException(System.SR.Cryptography_Der_Invalid_Encoding, inner);
28 }
29 }
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 PBEParameter decoded)

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