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

◆ Decode() [2/4]

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

Definition at line 26 of file Pbkdf2Params.cs.

27 {
28 try
29 {
31 DecodeCore(ref reader, expectedTag, encoded, out var decoded);
32 reader.ThrowIfNotEmpty();
33 return decoded;
34 }
35 catch (AsnContentException inner)
36 {
37 throw new CryptographicException(System.SR.Cryptography_Der_Invalid_Encoding, inner);
38 }
39 }
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 Pbkdf2Params decoded)

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