On Wed, 2010-08-18 at 10:14 +1000, Austin Lund wrote:
#define MAGIC_CRYPTPROV 0xA39E741F +#define MAGIC_CRYPTKEY 0xA39E741F +#define MAGIC_CRYPTHASH 0xA39E741F
The app might pass a crypto handle of the wrong type, so it would be better to use different magic values.