Re: [HACKERS] Check for interrupts in bf and xdes crypt()

2015-12-27 Thread Jeff Janes
On Tue, Dec 15, 2015 at 12:35 AM, Andreas Karlsson wrote: > Hi, > > Here is a patch which makes it possible to cancel a query which runs the > crypt() function with the bf or xdes hashing algorithm, e.g. crypt('foo', > gen_salt('bf', 13)). The md5 algorithm does not run for

Re: [HACKERS] Check for interrupts in bf and xdes crypt()

2015-12-27 Thread Alvaro Herrera
Jeff Janes wrote: > On Tue, Dec 15, 2015 at 12:35 AM, Andreas Karlsson wrote: > > Here is a patch which makes it possible to cancel a query which runs the > > crypt() function with the bf or xdes hashing algorithm, e.g. crypt('foo', > > gen_salt('bf', 13)). The md5 algorithm

[HACKERS] Check for interrupts in bf and xdes crypt()

2015-12-15 Thread Andreas Karlsson
Hi, Here is a patch which makes it possible to cancel a query which runs the crypt() function with the bf or xdes hashing algorithm, e.g. crypt('foo', gen_salt('bf', 13)). The md5 algorithm does not run for multiple rounds so there is no reason to patch it. I noticed this problem when I