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

◆ ConvertFromIeeeP1363Signature()

static byte[] Internal.Cryptography.AsymmetricAlgorithmHelpers.ConvertFromIeeeP1363Signature ( byte[] signature,
DSASignatureFormat targetFormat )
inlinestaticpackage

Definition at line 99 of file AsymmetricAlgorithmHelpers.cs.

100 {
101 return targetFormat switch
102 {
103 DSASignatureFormat.IeeeP1363FixedFieldConcatenation => signature,
104 DSASignatureFormat.Rfc3279DerSequence => ConvertIeee1363ToDer(signature),
105 _ => throw new CryptographicException(System.SR.Cryptography_UnknownSignatureFormat, targetFormat.ToString()),
106 };
107 }
static byte[] ConvertIeee1363ToDer(ReadOnlySpan< byte > input)
static string Cryptography_UnknownSignatureFormat
Definition SR.cs:156
Definition SR.cs:7

References Internal.Cryptography.AsymmetricAlgorithmHelpers.ConvertIeee1363ToDer(), and System.SR.Cryptography_UnknownSignatureFormat.

Referenced by System.Security.Cryptography.DSA.CreateSignatureCore(), System.Security.Cryptography.DSA.SignDataCore(), System.Security.Cryptography.DSA.TryCreateSignatureCore(), and System.Security.Cryptography.ECDsa.TrySignHashCore().