Skip to content

Commit

Permalink
To invoke PSS, setSignatureMode not setEncryptionMode.
Browse files Browse the repository at this point in the history
  • Loading branch information
paragonie-security committed Apr 18, 2018
1 parent 7479742 commit 47e2fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocol/Version1.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public static function getRsa(): RSA
$rsa = new RSA();
$rsa->setHash('sha384');
$rsa->setMGFHash('sha384');
$rsa->setEncryptionMode(RSA::SIGNATURE_PSS);
$rsa->setSignatureMode(RSA::SIGNATURE_PSS);
return $rsa;
}

Expand Down

0 comments on commit 47e2fdf

Please sign in to comment.