Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove buffering for AES CTR #1580

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Commits on Jun 6, 2017

  1. Remove buffering for AES CTR

    CTR mode of AES algorithm turns block cipher into stream cipher.
    It means that input data can has any size independent from block
    size. It must be processed and result ciphertext must be
    generated after each TEE_CipherUpdate function call. That is why
    it is incorrect to apply for AES CTR the input buffering on
    TEE_CipherUpdate call when size is not multiple of block size.
    
    Signed-off-by: Bogdan Liulko <bogdan.liulko@globallogic.com>
    Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey)
    Tested-by: Bogdan Liulko <bogdan.liulko@globallogic.com> (R-Car)
    Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
    bogdan-liulko committed Jun 6, 2017
    Configuration menu
    Copy the full SHA
    712abb6 View commit details
    Browse the repository at this point in the history