fix ecdsa signing issue. (#16772)

This commit is contained in:
Ghufran Zahidi
2023-10-10 16:06:41 +05:30
committed by GitHub
parent f03cbea971
commit 1bbbb73690
9 changed files with 48 additions and 6 deletions

View File

@@ -352,6 +352,11 @@ namespace Org.OpenAPITools.Client
throw new Exception("ECDSA signing is supported only on NETCOREAPP3_0 and above");
}
/// <summary>
/// Convert ANS1 format to DER format. Not recommended to use because it generate inavlid signature occationally.
/// </summary>
/// <param name="signedBytes"></param>
/// <returns></returns>
private byte[] ConvertToECDSAANS1Format(byte[] signedBytes)
{
var derBytes = new List<byte>();