Skip to content

Commit

Permalink
Merge pull request dotnet#2015 from bartonjs/rsa-publickey-only
Browse files Browse the repository at this point in the history
Assign _safeProvHandle when importing public keys.
  • Loading branch information
bartonjs committed Jun 12, 2015
2 parents 9c4637a + e97d111 commit 9029ffc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ public void ImportCspBlob(byte[] keyBlob)
SafeProvHandle safeProvHandleTemp = SafeProvHandle.InvalidHandle;
AcquireSafeProviderHandle(ref safeProvHandleTemp);
CapiHelper.ImportKeyBlob(safeProvHandleTemp, (CspProviderFlags)0, keyBlob, ref _safeKeyHandle);
_safeProvHandle = safeProvHandleTemp;
}
else
{
Expand Down
6 changes: 0 additions & 6 deletions src/System.Security.Cryptography.RSA/tests/SignVerify.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ public static void ExpectSignature_SHA256_1024_Stream()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifySignature_SHA1_2048()
{
Expand Down Expand Up @@ -202,7 +201,6 @@ public static void VerifySignature_SHA1_2048()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifySignature_SHA256_1024()
{
Expand Down Expand Up @@ -230,7 +228,6 @@ public static void VerifySignature_SHA256_1024()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifySignature_SHA256_2048()
{
Expand Down Expand Up @@ -494,7 +491,6 @@ public static void ExpectedHashSignature_SHA256_2048()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifyHashSignature_SHA1_2048()
{
Expand Down Expand Up @@ -545,7 +541,6 @@ public static void VerifyHashSignature_SHA1_2048()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifyHashSignature_SHA256_1024()
{
Expand Down Expand Up @@ -580,7 +575,6 @@ public static void VerifyHashSignature_SHA256_1024()
}

[Fact]
[ActiveIssue(1888, PlatformID.Windows)]
[ActiveIssue(1964, PlatformID.AnyUnix)]
public static void VerifyHashSignature_SHA256_2048()
{
Expand Down

0 comments on commit 9029ffc

Please sign in to comment.