20 oidValue =
"1.2.840.10045.4.3.2";
24 oidValue =
"1.2.840.10045.4.3.3";
32 oidValue =
"1.2.840.10045.4.3.4";
55 if (
string.IsNullOrEmpty(
text))
58 text = friendlyName
switch
60 "nistP256" =>
"1.2.840.10045.3.1.7",
61 "nistP384" =>
"1.3.132.0.34",
62 "nistP521" =>
"1.3.132.0.35",
68 byte[] rawData = asnWriter.
Encode();
69 byte[]
array =
new byte[1 + eCParameters.Q.X.Length + eCParameters.
Q.
Y.Length];
static byte[] ConvertIeee1363ToDer(ReadOnlySpan< byte > input)
static void BlockCopy(Array src, int srcOffset, Array dst, int dstOffset, int count)
static string Cryptography_UnknownHashAlgorithm
static string Cryptography_ECC_NamedCurvesOnly
static string Format(string resourceFormat, object p1)
virtual byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
virtual ECParameters ExportParameters(bool includePrivateParameters)
static Oid EcPublicKeyOid
override byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm)
ECDsaX509SignatureGenerator(ECDsa key)
override PublicKey BuildPublicKey()
override byte[] GetSignatureAlgorithmIdentifier(HashAlgorithmName hashAlgorithm)
static HashAlgorithmName SHA512
static HashAlgorithmName SHA256
static HashAlgorithmName SHA384