Re: cipher implementations allowed to sleep?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 31. März 2016, 20:58:25 schrieb Herbert Xu:

Hi Herbert,

> On Thu, Mar 31, 2016 at 01:47:50PM +0200, Stephan Mueller wrote:
> > Considering the implementation in ansi_cprng.c, is it allowed to use
> > spin_lock_bh with the sync operations assuming that a cipher
> > implementation
> > may sleep?
> 
> As I said, it's only allowed to sleep if you set the MAY_SLEEP
> flag.

Now I see, I as a caller can controll whether it can sleep. Thank you.

Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux