Content digest
When an object is written, the client can request that the access server calculate a digest on the written content with the X-Digest request header. This digest is returned as a hex-encoded value with the X-Content-Digest response header. The purpose of content digest calculation is to allow clients to verify that the correct information was written across the wire. The calculated digest is not stored with the data. Data at rest integrity is ensured by the integrity codecs that are configured for the vault. Currently, three supported digest algorithms are available. Digest algorithm specifications are not case-sensitive.
Supported digest algorithms
- md5
- sha1
- sha512
Sample request
PUT /vault-name HTTP/1.1
X-SOH-Version: 2.5
Content-Length: 43
Host: access.example.com
Content-Type: Text/Plain
X-Digest: md5
The quick brown fox jumps over the lazy dog
Sample response
HTTP/1.1 201 Created
Server: Cleversafe/3.2.0.0
Accept-Ranges: bytes
Date: Wed, 25 Sep 2013 14:38:12 GMT
X-SOH-Version: 2.5
X-Clv-Request-Id: 3d1fbf9b-1ec0-4e8b-b284-34d89d530763
X-Content-Digest: 9e107d9d372bb6826bd81d3542a419d6
Content-Length: 37
d6133cd067ad4ea38cdcd1faa1e4e9040000