[PATCH 1/2] crypto: tcrypt - fix S/G table for test_aead_speed()

2017-10-10 Thread Robert Baronescu
In case buffer length is a multiple of PAGE_SIZE, the S/G table is incorrectly generated. Fix this by handling buflen = k * PAGE_SIZE separately. Signed-off-by: Robert Baronescu <robert.barone...@nxp.com> --- crypto/tcrypt.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

[PATCH 2/2] crypto: tcrypt - fix buffer lengths in test_aead_speed()

2017-10-10 Thread Robert Baronescu
Fix the way the length of the buffers used for encryption / decryption are computed. For e.g. in case of encryption, input buffer does not contain an authentication tag. Signed-off-by: Robert Baronescu <robert.barone...@nxp.com> --- crypto/tcrypt.c | 6 -- 1 file changed, 4 insertions