I have a quick question to ask. I'm using the
EVP_EncryptInit and EVP_DecryptInit functions to stream data to a file.
Basically, I encrypt data , one byte at a time, which is in the put area of my
filebuf object and send it out. I When I get data from the file, I decrypt each
byte I receive one byte at a time. The problem is when i use 'seekg(x)' to seek
to a point in the file , when I try to decrypt the buffer I get back, the
results are wrong. However, when I start from the beginning, every thing is
fine. When I seek, it does seek to the right byte in the file. Does any one know
why this may be the case?
I'm using EVP_rc4();
|
- Re: Decryption wrong when seeking into a file. Lorenzo
- Re: Decryption wrong when seeking into a file. Joerg Bartholdt
- Re: Decryption wrong when seeking into a file. Michael Sierchio
- RE: Decryption wrong when seeking into a file. David Schwartz