if so how can I know where my en-/decrypted data ends
in the buffer? Does it still always equal the size of the in buffer even
if more data is written to the out buffer?
Thanks a lot for your help.
Cheers
Nico Flink
Hello,
I am using EVP to encrypt and decrypt some files. This works pretty
well. But now I restructured my code in order to be able to decrypt data
streams so I don't have to save an unencrypted version of a file on the
hd before computing it. To do that I initialize the cipher context
before t
Hello,
I still have not found a solution for the below problem. Can anyone
offer any help?
Cheers
Nico
Von: owner-openssl-us...@openssl.org
[mailto:owner-openssl-us...@openssl.org] Im Auftrag von Nico Flink
Gesendet: Mittwoch, 23. November 2011 12:12
Hello,
I am trying to decrypt a buffer whose size is a multiple of the padding
size (n * 16 bytes). But instead of getting the whole buffer as a result
from EVP_CipherUpdate() I only get "InSize - PaddingSize" decrypted
bytes. I get this behaviour with padding enabled and disabled. Is this
the
you have to call the
EVP_CipherFinal() to encrypt the remaining bytes. Refer to the
documentation to see how to correctly pass the parameters:
http://www.openssl.org/docs/crypto/EVP_EncryptInit.html. The same goes
for the decryption.
I hope this help.
Cheers.
Andrea
Il giorno 01 dicembre 20
-openssl-us...@openssl.org]
Im Auftrag von Dave Thompson
Gesendet: Freitag, 2. Dezember 2011 23:47
An: openssl-users@openssl.org
Betreff: RE: Decrypted buffer padding
> From: owner-openssl-us...@openssl.org On Behalf Of Nico Flink
> Sent: Friday, 02 December, 2011 02:32
>
Betreff: RE: Decrypted buffer padding
> From: owner-openssl-us...@openssl.org On Behalf Of Nico Flink
> Sent: Monday, 05 December, 2011 06:31
> To avoid the padding problem I tried the AES OFB and CFB
> streaming modes. Indeed this solves the padding problem. But
> if I understand