Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
OtherNameAsn.cs
Go to the documentation of this file.
1
using
System.Formats.Asn1
;
2
3
namespace
System.Security.Cryptography.Asn1
;
4
5
internal
struct
OtherNameAsn
6
{
7
internal
string
TypeId
;
8
9
internal
ReadOnlyMemory<byte>
Value
;
10
11
internal
void
Encode
(
AsnWriter
writer
,
Asn1Tag
tag)
12
{
13
writer
.PushSequence(tag);
14
try
15
{
16
writer
.WriteObjectIdentifier(
TypeId
);
17
}
18
catch
(
ArgumentException
inner)
19
{
20
throw
new
CryptographicException
(
System
.
SR
.
Cryptography_Der_Invalid_Encoding
, inner);
21
}
22
writer
.PushSequence(
new
Asn1Tag
(
TagClass
.ContextSpecific, 0));
23
try
24
{
25
writer
.WriteEncodedValue(
Value
.
Span
);
26
}
27
catch
(
ArgumentException
inner2)
28
{
29
throw
new
CryptographicException
(
System
.
SR
.
Cryptography_Der_Invalid_Encoding
, inner2);
30
}
31
writer
.PopSequence(
new
Asn1Tag
(
TagClass
.ContextSpecific, 0));
32
writer
.PopSequence(tag);
33
}
34
}
System.ArgumentException
Definition
ArgumentException.cs:9
System.Formats.Asn1.AsnWriter
Definition
AsnWriter.cs:13
System.SR.Cryptography_Der_Invalid_Encoding
static string Cryptography_Der_Invalid_Encoding
Definition
SR.cs:50
System.SR
Definition
SR.cs:7
System.Security.Cryptography.CryptographicException
Definition
CryptographicException.cs:9
System.Formats.Asn1.TagClass
TagClass
Definition
TagClass.cs:4
System.Formats.Asn1
Definition
Asn1Tag.cs:3
System.Security.Cryptography.Asn1
Definition
AlgorithmIdentifierAsn.cs:3
System.ExceptionArgument.writer
@ writer
System
Definition
BlockingCollection.cs:8
System.Formats.Asn1.Asn1Tag
Definition
Asn1Tag.cs:6
System.ReadOnlyMemory.Span
unsafe ReadOnlySpan< T > Span
Definition
ReadOnlyMemory.cs:30
System.ReadOnlyMemory
Definition
ReadOnlyMemory.cs:14
System.Security.Cryptography.Asn1.OtherNameAsn.TypeId
string TypeId
Definition
OtherNameAsn.cs:7
System.Security.Cryptography.Asn1.OtherNameAsn.Encode
void Encode(AsnWriter writer, Asn1Tag tag)
Definition
OtherNameAsn.cs:11
System.Security.Cryptography.Asn1.OtherNameAsn.Value
ReadOnlyMemory< byte > Value
Definition
OtherNameAsn.cs:9
System.Security.Cryptography.Asn1.OtherNameAsn
Definition
OtherNameAsn.cs:6
source
System.Security.Cryptography.X509Certificates
System.Security.Cryptography.Asn1
OtherNameAsn.cs
Generated by
1.10.0