From bd9c9db00bbe9a028674628c1798dcdeb79ef3ea Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 31 Mar 2010 14:26:16 -0500 Subject: [PATCH] Add publickey algorithm mappings --- lib/openpgp.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/openpgp.php b/lib/openpgp.php index ebeca8f..c1acce8 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -734,6 +734,18 @@ class OpenPGP_PublicKeyPacket extends OpenPGP_Packet { return $this->fingerprint = sha1(implode('', $material)); } } + + static $algorithms = array( + 1 => 'RSA', + 2 => 'RSA', + 3 => 'RSA', + 16 => 'ELGAMAL', + 17 => 'DSA', + 18 => 'ECC', + 19 => 'ECDSA', + 21 => 'DH' + ); + } /**