Re: Re: [RFC] XML_Encryption
| From: | Lorenzo Alberton | Date: | Sun, 05 Jan 2003 18:31:18 +0000 |
| Subject: | Re: Re: [RFC] XML_Encryption | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-12143@lists.php.net to get a copy of this message | ||
> > I'm actually searching for AES-[128 | 192 | 256] and TripleDES,
> > which are required by XML_Encryption Rec.
>
>
> I am interessted in AES too (or better Crypto in general. Should
> be obvious after my Crypt_RSA announcement ;))
Yes, in fact I was almost asking you directly :-D
> Today I searched for a C implementation, wrote a simple
> PHP extension and here we are. I got a Crypt_AES class
> (http://dickmann.homeunix.org/pear/pear/Crypt_AES/AES.php?source and
>
> http://dickmann.homeunix.org/pear/phpdoc/PEAR/Crypt_AES/Crypt_AES.
> html) which wrapps around the extension and adds support for
> blocks larger than the blocksize (but no CBC yet).
> It supports 16, 24 and 32 byte block sizes.
Wonderful! Could I have an usage example?
I tried your script and I got a
"Call to undefined function: aes_encrypt() on line 108"
I suppose I need the PHP extension too ;-)
> I will have a closer look, if a implementation in PHP can
> be done with acceptable performance and in acceptable
> time. Crypt_AES could then fallback to the PHP implementation
> of no ext/aes is available.
That would be just *perfect*. I could help with porting from C
source, if you can't do it alone. Just assign me my homeworks :-)
> XML_Encryption is a class to handle encrypted XML files?
Right... It takes the value to encrypt, some options such as algorithm
to use, additional parameters, key value/location, etc, and
builds the XML [ EncryptedData | EncryptedKey ] block.
I'm also planning a decryption class, but I need those algorithms
first...
After that, XML Digital Signature could be considered ;-)
Tnx,
Lorenzo