agent: Fix regression due to recent commit 4159567.
* agent/protect.c (do_encryption): Fix CBC hashing.
The buggy code included an extra closing parenthesis before
the (protected-at) term in the CBC hashing. We now do it by
explicitly hashing the protected stuff and append the rest of the
expression instead of a fixed closing parenthesis. Note that the OCB
hashing only differs that it does no include the protected part.
- Fixes-commit: 4159567f7ed7a1139fdc3a6c92988e1648ad84ab
- Signed-off-by: Werner Koch <wk@gnupg.org>