update() and digest() raise exception in non-AEAD modes