RC4 and in-buffer encryption with EVP_Encrypt/DecryptUpdate

2008-07-01 Thread Panthers Rock
This question has been asked before and I could find no answers to it in the archives. Can one send the same buffer (for in and out parameters) to EVP_EncryptUpdate and EVP_DecryptUpdate functions when the encryption cipher is RC4? Regards, S M

RE: PEM binary format

2008-07-01 Thread David Schwartz
> Thus, I conclude that there is some format in place, respectively > how do I know where a bignum starts and where it ends? The format is ANSI X.690, also knows as BER or DER, somtimes (slightly erroneously) referred to as ASN.1. > I tried to find a clue by browsing the sources, but I gave up >

Re: custom asn1 structure

2008-07-01 Thread harold reggie
Thanks for the response. Unfortunately i cannot use any other version of openssl. Up until now i have been working with the methods provided by openssl as i described. i2d, ASN1* . But now you say i have to create 4 new functions. I dont think 0.9.6 follows the same nameing conventions as i dont

Re: custom asn1 structure

2008-07-01 Thread Dr. Stephen Henson
On Tue, Jul 01, 2008, harold reggie wrote: > Hello, > I am trying to build a custom asn1 structure in my program using openssl > 0.9.6. > The structure will have a few sequences / sets with integers, > printablestrings, etc. > > I am looking for some help on where to begin. I have been pouring ov

custom asn1 structure

2008-07-01 Thread harold reggie
Hello, I am trying to build a custom asn1 structure in my program using openssl 0.9.6. The structure will have a few sequences / sets with integers, printablestrings, etc. I am looking for some help on where to begin. I have been pouring over the openssl code, and have been playing with various me

Re: asn1 encoding routines:ASN1_get_object:too long

2008-07-01 Thread fbc
I fixed it -- removed FIXCRIO from my qmail smtpd/run file Sorry for the posting when this wasn't really an openssl problem... but I'd like to post this follow up just in case someone googles it in the future if they made the same mistake as me! On Mon, Jun 30, 2008 at 1:32 PM, fbc <[EMAIL PROTECT

Re: using NNTPS (nnrp with ssl) with windows mail / thunderbird on windows vista

2008-07-01 Thread David Hláčik
Hello all, lately i am facing problems with Certification Authorities as mentioned in mails attached. Hope anyone knowns centos perl script CA for generating certificates (i believe it is not only centos script and other distros use it also. I have used centos script /etc/pki/tls/misc/CA my own ce

Re: Dev EVP Unterstand

2008-07-01 Thread Dr. Stephen Henson
On Sat, Jun 28, 2008, Razack wrote: > I'm not sure, that this code is correct? > > > > thx for help > > > > unsigned char text[]="Hello World!"; > > char key[]="password"; > > char iv[]="12345678"; > > [snip] > > > EV

Re: TLSv1 problem

2008-07-01 Thread doki_pen
Leonard F. Elia wrote: TLS v1 (OpenSSL 0.9.8d 28 Sep 2006 / SunOS 5.10 Generic_127127-11 sun4v sparc SUNW,Sun-Fire-T1000) and Firefox 3 [Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0] both work fine for me. doki_pen wrote: I think it is a firefox prob

PEM binary format

2008-07-01 Thread Armin Wasicek
Hello! I want to use openssl generated rsa keys in my custom rsa implementation. In order to do this, I have to interpret the binary file created by: (host.key is the rsa key file) $ openssl enc -d -base64 -in host.key I suppose the funny outputs are the bignums from the struct rsa_st (cryp

RE: Dev EVP Unterstand

2008-07-01 Thread David Schwartz
> I'm not sure, that this code is correct? It has some minor issues but appears basically correct. >EVP_EncryptInit_ex(&ctx,EVP_aes_256_cbc(),NULL,key,iv); >EVP_EncryptUpdate(&ctx,outbuf,&outlen,text,strlen(text)); >EVP_EncryptFinal_ex(&ctx,outbuf

R: R: PEM_read_RSAPublicKey problem

2008-07-01 Thread Marco Sommella
No no i do it correct. PEM_read_RSAPrivateKey() RSA_sign() For sign and: PEM_read_RSAPublicKey() RSA_verify() For verify -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Kenneth Goldman Inviato: lunedì 30 giugno 2008 14.58 A: openssl-users@openssl.org O

Re: R: PEM_read_RSAPublicKey problem

2008-07-01 Thread Kenneth Goldman
Perhaps the problem is that you're reading the public key and trying to sign. Signing uses a private key. Try: PEM_read_RSAPrivateKey() RSA_sign() [EMAIL PROTECTED] wrote on 06/27/2008 11:31:42 AM: > Excuse me, > I'm trying, using C, to do a simple sign and verify with RSA public and > private