Paul Vriens : crypt32: Added some input validation.