Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/KeyVault/KeyVault/SecurityDomain/Models/CertKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void Load(KeyPath path)
public RSA GetKey() { return _key; }
public X509Certificate2 GetCert() { return _cert; }

static RSAParameters RsaParamsFromPem(string path, string password) // CodeQL [SM02205] BouncyCastle is the only API available because we need to be at netstandard2.0
static RSAParameters RsaParamsFromPem(string path, string password) // CodeQL [SM02205] BouncyCastle is the only API available since netstandard v2 is forced
{
using (var stream = File.OpenText(path))
{
Expand All @@ -60,7 +60,7 @@ static RSAParameters RsaParamsFromPem(string path, string password) // CodeQL [
}
}

static RSAParameters ToRSAParameters(RsaPrivateCrtKeyParameters privKey)
static RSAParameters ToRSAParameters(RsaPrivateCrtKeyParameters privKey) // CodeQL [SM02205] BouncyCastle is the only API available since netstandard v2 is forced
{
RSAParameters rp = new RSAParameters
{
Expand All @@ -77,7 +77,7 @@ static RSAParameters ToRSAParameters(RsaPrivateCrtKeyParameters privKey)
}


static byte[] ConvertRSAParametersField(Org.BouncyCastle.Math.BigInteger n, int size)
static byte[] ConvertRSAParametersField(Org.BouncyCastle.Math.BigInteger n, int size) // CodeQL [SM02205] BouncyCastle is the only API available since netstandard v2 is forced
{
byte[] bs = n.ToByteArrayUnsigned();
if (bs.Length == size)
Expand Down
Loading