Get names for key/hash algorithm on signature

This commit is contained in:
Stephen Paul Weber 2010-03-31 14:26:16 -05:00
parent bd9c9db00b
commit 3b6b29127f
1 changed files with 8 additions and 0 deletions

View File

@ -413,6 +413,14 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet {
return $body;
}
function key_algorithm_name() {
return OpenPGP_PublicKeyPacket::$algorithms[$this->key_algorithm];
}
function hash_algorithm_name() {
return self::$hash_algorithms[$this->hash_algorithm];
}
/**
* @see http://tools.ietf.org/html/rfc4880#section-5.2.3.1
*/