Merge pull request #1384 from reaperhulk/fix-1382

enable truncation for DSA digests prior to signing
Merge pull request #1404 from reaperhulk/backport-dsa-truncate

backport DSA truncation fix to 0.6.x