PIM-1852 : update the computation of the digest for the rest api
(related to wsse update)