Set custom IV length in AES GCM 35/190635/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 4 Oct 2018 08:53:52 +0000 (10:53 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Fri, 5 Oct 2018 13:20:31 +0000 (15:20 +0200)
commit0c81d4e4548a6f6943604899d83ce862a2ca7b3c
treeb1e7120a9d7d69c3233647db8fc6017ea16977ea
parentbd4367bc3899916361dcaa5f33c6dd2822ca5441
Set custom IV length in AES GCM

Current implementation assumed the default IV length (12B) silently ignoring
longer IVs. As a result the encryption output did not match the expected one.

This commit modifies the implementation to always set the actual IV length in
the encryption context.

Change-Id: I82f9bc916f108563a4a940d340945279c661bbaa
ssflib/src/ssf_crypto_openssl.cpp