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

◆ Decode() [1/6]

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

Definition at line 21 of file PrivateKeyInfoAsn.cs.

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

References System.SR.Cryptography_Der_Invalid_Encoding, System.Security.Cryptography.Asn1.PrivateKeyInfoAsn.DecodeCore(), and System.Formats.Asn1.AsnValueReader.ThrowIfNotEmpty().