Re: Crypt_HMAC
| From: | Matthew Fonda | Date: | Thu, 10 Feb 2005 20:22:28 +0000 |
| Subject: | Re: Crypt_HMAC | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-36135@lists.php.net to get a copy of this message | ||
On Thu, 2005-02-10 at 11:52, Derick Rethans wrote:
> On Thu, 10 Feb 2005, Helgi [ISO-8859-1] ormar wrote:
>
> > On Wed, 2005-02-09 at 22:49, Matthew Fonda wrote:
> > > If its okay with everyone, I'd be happy to help maintain this package.
> >
> > That would be great! :-)
> > Lets hear what Derick says about this before we take any further actions
> > :P
>
> It's fine as long as long as you run the patches by me. I don't want to
> see this package bloat up ;-)
>
> Derick
Alright, well I was working on it some and here are a few of the changes
I have made:
* Added setFunction() method to allow the hash method used to be changed
without created a new object
* Added setKey() method to allow the key to be changed without creating
new objects
* Added a static hash() method
* Fixed Bug #2524 (http://pear.php.net/bugs/bug.php?id=2524)
* Defined constants for hash methods
I did some benchmarking as well, and the speed of the original code and
the new code is very comparable, the new code may be just slightly
faster, but no real noticeable difference.
Here is the new code: http://php.hm/~mfonda/b/HMAC.phps
--
Regards,
Matthew Fonda