From 8019d3c564ac06087438aa4c67dfe6f35e1f3011 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 31 Mar 2010 14:26:16 -0500 Subject: [PATCH] Add hash algorithm mappings --- lib/openpgp.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/openpgp.php b/lib/openpgp.php index ab4e799..ebeca8f 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -454,6 +454,16 @@ class OpenPGP_SignaturePacket extends OpenPGP_Packet { return $packet; } + static $hash_algorithms = array( + 1 => 'MD5', + 2 => 'SHA1', + 3 => 'RIPEMD160', + 8 => 'SHA256', + 9 => 'SHA384', + 10 => 'SHA512', + 11 => 'SHA224' + ); + static $subpacket_types = array( //0 => 'Reserved', //1 => 'Reserved',