Lines Matching refs:RSA
35 use phpseclib3\Crypt\RSA;
36 use phpseclib3\Crypt\RSA\Formats\Keys\PSS;
1400 $key = RSA::loadFormat('PSS', $publicKey);
1403 $key = RSA::loadFormat('PKCS8', $publicKey);
1416 ->withPadding(RSA::SIGNATURE_PKCS1);
2094 * Key needs to be a \phpseclib3\Crypt\RSA object
2107 * Key needs to be a \phpseclib3\Crypt\RSA object
2131 * Returns a \phpseclib3\Crypt\RSA object or a false.
2162 return RSA::loadFormat('PSS', $key);
2164 return RSA::loadFormat('PKCS8', $key)->withPadding(RSA::SIGNATURE_PKCS1);
2980 if ($key instanceof RSA) {
2981 if ($key->getPadding() & RSA::SIGNATURE_PSS) {
2998 throw new UnsupportedAlgorithmException('The only supported hash algorithms for RSA are: md2, md5, sha1, sha224, sha256, sha384, sha512');
3028 throw new UnsupportedAlgorithmException('The only supported public key classes are: RSA, DSA, EC');
3659 default: // Should be a key object (i.e.: \phpseclib3\Crypt\RSA).
3686 $format = $this->publicKey instanceof RSA && ($this->publicKey->getPadding() & RSA::SIGNATURE_PSS) ?