|
Description
|
Currently, /dev/crypto allocates memory for both plaintext and ciphertext for an encrypt or decrypt operation. Instead, it can allocate a single buffer and use the in-place convention when calling the k-API (set the pointer to the output crypto_data_t to NULL). This saves memory and could be faster for some symmetric ciphers which do the transformaion internally in-place.
Lawrence Spracklen noticed this issue and I agree it is a good enhancement.
|