On my Windows 7 (x64) machine gpgsm always crashes with the following output:
C:\Users\bboeck.GPS>gpgsm --gen-key
gpgsm (GnuPG) 2.0.28; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA (2) Existing key (3) Existing key from card
Your selection? 1
What keysize do you want? (2048) 4096
Requested keysize is 4096 bits
Possible actions for a RSA key:
(1) sign, encrypt (2) sign (3) encrypt
Your selection? 1
Enter the X.509 subject name: CN=Test
Enter email addresses (end with an empty line):
Enter DNS names (optional; end with an empty line):
Enter URIs (optional; end with an empty line):
Parameters to be used for the certificate request:
Key-Type: RSA Key-Length: 4096 Key-Usage: sign, encrypt Name-DN: CN=Test
Really create request? (y/N) y
Now creating certificate request. This may take a while ...
gpgsm: about to sign CSR for key: &91582A4FE74BB4E2FD3A4034BE86FB1890736AD0
Ohhhh jeeee: ... this is a bug (../../libgcrypt-1.6.3/cipher/md.c:809:md_read)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.