Re: rsaenh: AcquireContext can have multiple flags defined at the same time

2007-05-25 Thread Maarten Lankhorst
Mounir IDRASSI schreef: > Hi, > Your patch is wrong: the flags CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT > can't be mixed and if they are set together like in your patch > AcquireContext should return NTE_BAD_FLAGS. You can check that using the > MS implementation under windows. It's also clearly sta

Re: rsaenh: AcquireContext can have multiple flags defined at the same time

2007-05-25 Thread Mounir IDRASSI
Hi, Your patch is wrong: the flags CRYPT_NEWKEYSET and CRYPT_VERIFYCONTEXT can't be mixed and if they are set together like in your patch AcquireContext should return NTE_BAD_FLAGS. You can check that using the MS implementation under windows. It's also clearly stated in MSDN that CRYPT_VERIFYCONTE