$ openssl dgst -sha256 -binary KDM-DigestValue-Foo.xml | openssl base64 r4kvmLusMibh32vkz03cxPDWcX/PUj5g1OJ146Z8OLM= # This is the DigestValue of your Foo block # WARNING : Foo isn't canonicalized