Fixed issue when creating message digest when signing multiple inputs