Implement checksum verification as recommended in RFC1071.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Merge pull request #19 from pauldu/ca-127851

Implement checksum verification as recommended in RFC1071.

Approved-By: Ben Chalmers <ben.chalmers@citrix.com>