Old code for calculating (and checking) Authenticode hash in D