Fix negative CBC decryption test 50/248850/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 2 Dec 2020 17:07:09 +0000 (18:07 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 2 Dec 2020 17:07:09 +0000 (18:07 +0100)
commit1910f98daf6b8e954b9af11ba2459b17868ef037
tree74a784e979f0d504d5fd609f4a85095cd2a8a7a5
parent2aa831a7f0b2d550bfdeb33af45a8b7272b9ee5b
Fix negative CBC decryption test

There's a high chance that the padding ^ 0x1 will produce a 0x01
trailing byte which happens to be a valid padding. In such case make
sure that the length of the decrypted data is different.

Change-Id: I60b7f9e708d850c49dbddbdda64ff178d730b4f7
unit-tests/test_sw-backend.cpp