Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PBES2Params.cs
Go to the documentation of this file.
2
4
5internal struct PBES2Params
6{
8
10
12 {
13 return Decode(Asn1Tag.Sequence, encoded, ruleSet);
14 }
15
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 {
28 }
29 }
30
31 private static void DecodeCore(ref System.Formats.Asn1.AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory<byte> rebind, out System.Security.Cryptography.Asn1.PBES2Params decoded)
32 {
33 decoded = default(System.Security.Cryptography.Asn1.PBES2Params);
34 System.Formats.Asn1.AsnValueReader reader2 = reader.ReadSequence(expectedTag);
35 System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn.Decode(ref reader2, rebind, out decoded.KeyDerivationFunc);
36 System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn.Decode(ref reader2, rebind, out decoded.EncryptionScheme);
37 reader2.ThrowIfNotEmpty();
38 }
39}
static string Cryptography_Der_Invalid_Encoding
Definition SR.cs:50
Definition SR.cs:7
static readonly Asn1Tag Sequence
Definition Asn1Tag.cs:29
AsnValueReader ReadSequence(Asn1Tag? expectedTag=null)
unsafe ReadOnlySpan< T > Span
static void Decode(ref AsnValueReader reader, ReadOnlyMemory< byte > rebind, out AlgorithmIdentifierAsn decoded)
static void DecodeCore(ref AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory< byte > rebind, out PBES2Params decoded)
static void DecodeCore(ref System.Formats.Asn1.AsnValueReader reader, Asn1Tag expectedTag, ReadOnlyMemory< byte > rebind, out System.Security.Cryptography.Asn1.PBES2Params decoded)
static PBES2Params Decode(ReadOnlyMemory< byte > encoded, AsnEncodingRules ruleSet)
static System.Security.Cryptography.Asn1.PBES2Params Decode(Asn1Tag expectedTag, ReadOnlyMemory< byte > encoded, AsnEncodingRules ruleSet)
static System.Security.Cryptography.Asn1.PBES2Params Decode(ReadOnlyMemory< byte > encoded, AsnEncodingRules ruleSet)
System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn KeyDerivationFunc
Definition PBES2Params.cs:7
System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn EncryptionScheme
Definition PBES2Params.cs:9