As far as block ciphering goes, it just munches input
data. It really doesn't care whether the input is text
or xml(special form of text) or binary data. 

So I think you should not worry about that. There are
examples of how to use the crypto functions in OpenSSL
in the man pages. "man evp" will help. Also you will
find a couple of good books with examples. 

http://www.opensslbook.com

For signing you need PKI and is more elaborate than
just encryption.

HTH,
Girish

--- Kaushalye Kapuruge <[EMAIL PROTECTED]> wrote:

> Hi Steffen,
> Thanks for the reply.
> But as I've mentioned in my previuos mail, xmlsec is
> not suited for my 
> requirement. Xmlsec uses DOM and I've a different
> implementation. I can 
> modify xmlsec but that would be lots of work.
> If I clarify what I need again...
> I'd like if somebody can point me out how to use
> openssl for block 
> cipher encryption.e.g. With few samples.
> Also interested to know abt differences btwn
> encrypting XML and 
> encrypting Text if any. (e.g. For signing we have to
> use C14N)
> Cheers,
> Kaushalye.
> 
> Steffen Lips wrote:
> 
> > HI,
> >
> > do really need to write a library? There is
> already a library for 
> > XMLSig and XMLEnc that uses OpenSSL.
> >
> > http://www.aleksey.com/xmlsec/
> >
> > Reg
> > Wu Dixer
> >
> > Kaushalye Kapuruge schrieb:
> >
> >> Hi,
> >> I need to write an xml security library to
> encrypt and decrypt xml 
> >> documents. For that I need to use openssl as the
> crypto library and 
> >> do not have a clear idea how to use it for block
> ciphers(e.g. DES). 
> >> Later I have to support signing as well. Can
> somebody direct me to 
> >> few openssl samples ? I googled a bit but
> couldn't find specific 
> >> samples for block ciphers. :(
> >> Also I have following questions
> >> 1.  Is it possible to just pass the cipher name ,
> IV, key , intext to 
> >> a openssl function and get the output ? OR do we
> have to use chaining 
> >> depending on the size of the intext? Are their
> ant other factors that 
> >> someone has to use EVP_CipherUpdate multiple
> times?
> >>
> >> 2. Do I need to prepare the intext before the
> transformation?
> >>
> >> Thanks,
> >> Kaushalye
> >>
> >> PS: I've noticed that xmlsec is such a library
> which is using 
> >> openssl. But according to my requirements its
> much better to have my 
> >> own one.
> >>
>
______________________________________________________________________
> >> OpenSSL Project                                
> http://www.openssl.org
> >> User Support Mailing List                   
> openssl-users@openssl.org
> >> Automated List Manager                          
> [EMAIL PROTECTED]
> >>
> >
> >
> 
>
______________________________________________________________________
> OpenSSL Project                                
> http://www.openssl.org
> User Support Mailing List                   
> openssl-users@openssl.org
> Automated List Manager                          
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to