Padding has to be set before update in case of decryption 22/236722/3
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Thu, 18 Jun 2020 15:53:32 +0000 (17:53 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Fri, 26 Jun 2020 15:36:20 +0000 (17:36 +0200)
commita8929ac54c843e43def74155a2986c63c7831353
treec807daaa1d7b7f9ecca91712ecf7f208a5d80d1c
parent04eb57b0dd89e74feace9dec903006b50208a04f
Padding has to be set before update in case of decryption

When doing encrypt/seal padding can be set before finalize as was
before. But it appears that decrypt behaves differently. In that case
padding has to be set before update or the decryption will be
incorrect.

Change-Id: I86ede38d0d79d401329c25c656e5c6b4c92e02cb
api/yaca/yaca_types.h
src/encrypt.c