PHP Class ParagonIE\EasyRSA\EasyRSA

Inheritance: implements ParagonIE\EasyRSA\EasyRSAInterface
Afficher le fichier Open project: paragonie/easyrsa Class Usage Examples

Méthodes publiques

Méthode Description
decrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
encrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
sign ( string $message, PrivateKey $rsaPrivateKey ) : string Sign with RSASS-PSS + MGF1+SHA256
verify ( string $message, string $signature, PublicKey $rsaPublicKey ) : boolean Verify with RSASS-PSS + MGF1+SHA256

Méthodes protégées

Méthode Description
rsaDecrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string Decrypt with RSAES-OAEP + MGF1+SHA256
rsaEncrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string Decrypt with RSAES-OAEP + MGF1+SHA256

Method Details

decrypt() public static méthode

Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
public static decrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string
$ciphertext string
$rsaPrivateKey PrivateKey
Résultat string

encrypt() public static méthode

Encrypt a message with defuse/php-encryption, using an ephemeral key, then encrypt the key with RSA.
public static encrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string
$plaintext string
$rsaPublicKey PublicKey
Résultat string

rsaDecrypt() protected static méthode

Decrypt with RSAES-OAEP + MGF1+SHA256
protected static rsaDecrypt ( string $ciphertext, PrivateKey $rsaPrivateKey ) : string
$ciphertext string
$rsaPrivateKey PrivateKey
Résultat string

rsaEncrypt() protected static méthode

Decrypt with RSAES-OAEP + MGF1+SHA256
protected static rsaEncrypt ( string $plaintext, PublicKey $rsaPublicKey ) : string
$plaintext string
$rsaPublicKey PublicKey
Résultat string

sign() public static méthode

Sign with RSASS-PSS + MGF1+SHA256
public static sign ( string $message, PrivateKey $rsaPrivateKey ) : string
$message string
$rsaPrivateKey PrivateKey
Résultat string

verify() public static méthode

Verify with RSASS-PSS + MGF1+SHA256
public static verify ( string $message, string $signature, PublicKey $rsaPublicKey ) : boolean
$message string
$signature string
$rsaPublicKey PublicKey
Résultat boolean