EVP_Encrypt/EVP_Decrypt input/output buffers requirements

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

EVP_Encrypt/EVP_Decrypt input/output buffers requirements

Patrice Guérin-2
Hello to all,

Documentation does not provide input/output buffers requirements for
encryption/decryption, so
is it safe to submit the same buffer (ie, input=output) for these
operations ?
If not, what is the minimum distance 'd' required (input = output+d) ?
This is to be used in small memory environment.

Thank you.
Kind regards,
Patrice.

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: EVP_Encrypt/EVP_Decrypt input/output buffers requirements

Matt Caswell-2


On 30/01/2019 09:45, Patrice Guérin wrote:
> Hello to all,
>
> Documentation does not provide input/output buffers requirements for
> encryption/decryption, so
> is it safe to submit the same buffer (ie, input=output) for these operations ?
> If not, what is the minimum distance 'd' required (input = output+d) ?
> This is to be used in small memory environment.

EVP_Encrypt*/EVP_Decrypt* support in-place encryption/decryption, i.e. where in
== out. They don't support "partially" overlapping buffers, i.e. where "in !=
out" but some portions of the buffer still overlap.

Matt

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Reply | Threaded
Open this post in threaded view
|

Re: EVP_Encrypt/EVP_Decrypt input/output buffers requirements

Patrice Guérin-2
Hello Matt,

Thank you very much.

Patrice.

Matt Caswell a écrit :

>
> On 30/01/2019 09:45, Patrice Guérin wrote:
>> Hello to all,
>>
>> Documentation does not provide input/output buffers requirements for
>> encryption/decryption, so
>> is it safe to submit the same buffer (ie, input=output) for these operations ?
>> If not, what is the minimum distance 'd' required (input = output+d) ?
>> This is to be used in small memory environment.
> EVP_Encrypt*/EVP_Decrypt* support in-place encryption/decryption, i.e. where in
> == out. They don't support "partially" overlapping buffers, i.e. where "in !=
> out" but some portions of the buffer still overlap.
>
> Matt
>

--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users