Re: Emptying the buffer

2008-02-15 Thread Joel Christner
Hi DS, I corrected the strings issue (a mistake I shouldn't have missed, also thanks to Jimmy's earlier email). I've leveled it down to a simple, small piece of code that does nothing more than take data from stdin, encrypt it, display the ciphertext, decrypt it, display the cleartext. Problem i

RE: Emptying the buffer

2008-02-15 Thread David Schwartz
Joel Christner wrote: > dataRead=recvfrom(connfd,readBuffer,sizeof(readBuffer),0,NULL,NULL); > for (i=0;i readBufferClear=decrypt(&context,readBuffer+i,1); You are passing characters one-at-a-time to your decryption function. Depending on exactly what this function does, this may indicate that yo

Re: Emptying the buffer

2008-02-15 Thread Jimmy B
On 2/15/08, Joel Christner <[EMAIL PROTECTED]> wrote: > Anyone have any ideas? > > Thanks > does it still happen after you changed your code? -jb __ OpenSSL Project http://www.openssl.org User Supp

Re: Emptying the buffer

2008-02-14 Thread Joel Christner
Anyone have any ideas? Thanks On Wed, Feb 13, 2008 at 6:44 PM, Joel Christner <[EMAIL PROTECTED]> wrote: > Hello, > > I have a simple client-server program and am using blowfish. I'm using > the EVP_* routines to initialize, encrypt, and decrypt. Variable-length > data is taken in from the cl

Re: Emptying the buffer

2008-02-14 Thread Joel Christner
Ok, I will change that. Can you provide any guidance on how to empty the buffer? Thanks On Thu, Feb 14, 2008 at 2:50 AM, jimmy bahuleyan <[EMAIL PROTECTED]> wrote: > Joel Christner wrote: > > Hello, > > > > I have a simple client-server program and am using blowfish. I'm using > > the EVP_* ro

Re: Emptying the buffer

2008-02-14 Thread jimmy bahuleyan
Joel Christner wrote: Hello, I have a simple client-server program and am using blowfish. I'm using the EVP_* routines to initialize, encrypt, and decrypt. Variable-length data is taken in from the client through stdin and sent to the server socket after encryption. One question I have is