eng_devcrypto: fix ctr mode
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Wed, 28 Nov 2018 13:26:27 +0000 (11:26 -0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 10 Dec 2018 12:22:14 +0000 (13:22 +0100)
commit2887a5c8f9a385b3ebee12b98f68e7d1f9cc0ea0
treeaa1d3cd398f0e6ef37dcefd7237d03e5569c464d
parenta19d1a1d370e2959555fccbafc4e970634840352
eng_devcrypto: fix ctr mode

Make CTR mode behave like a stream cipher.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7585)

(cherry picked from commit b5015e834aa7d3f0a5d7585a8fae05cecbdbb848)
crypto/engine/eng_devcrypto.c