$_key
$_key : \OpenPGP_PublicKeyPacket
Public/private key packet.
DSA (Digital Signature Algorithm) implementation.
generate(\phpseclib\Math\BigInteger $p, \phpseclib\Math\BigInteger $q, \phpseclib\Math\BigInteger $g) : array
DSA keypair creation.
\phpseclib\Math\BigInteger | $p | p |
\phpseclib\Math\BigInteger | $q | q |
\phpseclib\Math\BigInteger | $g | g |
Keys:
verify(string $message, string $hash_alg, \phpseclib\Math\BigInteger $r, \phpseclib\Math\BigInteger $s) : boolean
DSA verify.
string | $message | Message. |
string | $hash_alg | Hash algorithm. |
\phpseclib\Math\BigInteger | $r | r. |
\phpseclib\Math\BigInteger | $s | s. |
True if verified.