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

◆ Decode() [2/4]

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

Definition at line 46 of file Rc2CbcParameters.cs.

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

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