crypto: mediatek - Add empty messages check in GCM mode
authorRyder Lee <ryder.lee@mediatek.com>
Tue, 22 Aug 2017 07:53:39 +0000 (15:53 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:08 +0000 (17:43 +0800)
commite47270665b5fcdf8a9ae628e603119e998ca3715
tree360dbd14aef94b8a2b13e2233917d6af2143cef0
parentb7e2753040a2fef0f748c615121577da3f846781
crypto: mediatek - Add empty messages check in GCM mode

Currently, empty messages are not supported in GCM mode, hence add
a check to prevent producing incorrect results.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mediatek/mtk-aes.c