File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -517,14 +517,6 @@ public static ISigner GetSigner(
517
517
{
518
518
return ( new RsaDigestSigner ( new NullDigest ( ) , ( AlgorithmIdentifier ) null ) ) ;
519
519
}
520
-
521
- if ( Platform . EndsWith ( mechanism , "withRSA" ) )
522
- {
523
- string digestName = mechanism . Substring ( 0 , mechanism . LastIndexOf ( "with" ) ) ;
524
- IDigest digest = DigestUtilities . GetDigest ( digestName ) ;
525
- return new RsaDigestSigner ( digest ) ;
526
- }
527
-
528
520
if ( mechanism . Equals ( "RAWRSASSA-PSS" ) )
529
521
{
530
522
// TODO Add support for other parameter settings
@@ -536,7 +528,12 @@ public static ISigner GetSigner(
536
528
// to be used can be overridden by subsequent parameter settings.
537
529
return ( new PssSigner ( new RsaBlindedEngine ( ) , new Sha1Digest ( ) ) ) ;
538
530
}
539
-
531
+ if ( Platform . EndsWith ( mechanism , "withRSA" ) )
532
+ {
533
+ string digestName = mechanism . Substring ( 0 , mechanism . LastIndexOf ( "with" ) ) ;
534
+ IDigest digest = DigestUtilities . GetDigest ( digestName ) ;
535
+ return new RsaDigestSigner ( digest ) ;
536
+ }
540
537
if ( Platform . EndsWith ( mechanism , "withRSAandMGF1" ) )
541
538
{
542
539
string digestName = mechanism . Substring ( 0 , mechanism . LastIndexOf ( "with" ) ) ;
You can’t perform that action at this time.
0 commit comments