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

◆ Decode() [1/4]

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

Definition at line 45 of file ECDomainParameters.cs.

46 {
47 try
48 {
49 AsnValueReader reader = new AsnValueReader(encoded.Span, ruleSet);
50 DecodeCore(ref reader, encoded, out var decoded);
51 reader.ThrowIfNotEmpty();
52 return decoded;
53 }
54 catch (AsnContentException inner)
55 {
56 throw new CryptographicException(System.SR.Cryptography_Der_Invalid_Encoding, inner);
57 }
58 }
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
Definition SR.cs:7
unsafe ReadOnlySpan< T > Span
static void DecodeCore(ref AsnValueReader reader, ReadOnlyMemory< byte > rebind, out ECDomainParameters decoded)

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

Referenced by System.Security.Cryptography.Asn1.ECPrivateKey.DecodeCore(), System.Security.Cryptography.Asn1.ECPrivateKey.DecodeCore(), System.Security.Cryptography.EccKeyFormatHelper.FromECPrivateKey(), System.Security.Cryptography.EccKeyFormatHelper.FromECPrivateKey(), and System.Security.Cryptography.EccKeyFormatHelper.FromECPublicKey().