crypto/aesni_gcm: fix J0 padding bytes
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 23 Dec 2016 08:24:51 +0000 (08:24 +0000)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 18 Jan 2017 20:48:56 +0000 (21:48 +0100)
commitb9719b996a7c0c0dd4d80a142ddb26fabafd0ce9
tree258213e90ff23667bf48c9daaf15dd5b4b466602
parent84d79658660414e4985a455259c4b46e9e77366d
crypto/aesni_gcm: fix J0 padding bytes

This commit fixes pre-counter block (J0) padding by clearing
four most significant bytes before setting initial counter value.

Fixes: b2bb3597470c ("crypto/aesni_gcm: move pre-counter block to driver")

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Piotr Azarewicz <piotrx.t.azarewicz@intel.com>
drivers/crypto/aesni_gcm/aesni_gcm_pmd.c