add padding option for decrypt and corresponding test