All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] Confusion of the meaning for encrypto API's return value
@ 2019-12-16  7:18 ` Xu Zaibo
  0 siblings, 0 replies; 4+ messages in thread
From: Xu Zaibo @ 2019-12-16  7:18 UTC (permalink / raw)
  To: linux-crypto, dm-devel; +Cc: forest.zhouchang, zhangwei375

Hi,

I get a confusion.

According to my understanding, That 'crypto_skcipher_encrypt(request)' 
returns '-EBUSY '

means the caller should call this API again with the request. However, 
as my knowledge in

'dm-crypt', this means the caller need not call this request again, 
because 'dm-crypt' thinks

that the driver of 'crypto_skcipher_encrypt' will send the request again 
as it is not busy.

    So, my question is: what's the meaning of 
'crypto_skcipher_encrypt(request)' returning '-EBUSY '?


Cheers,

Zaibo


.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Question] Confusion of the meaning for encrypto API's return value
@ 2019-12-16  7:18 ` Xu Zaibo
  0 siblings, 0 replies; 4+ messages in thread
From: Xu Zaibo @ 2019-12-16  7:18 UTC (permalink / raw)
  To: linux-crypto, dm-devel; +Cc: forest.zhouchang, zhangwei375

Hi,

I get a confusion.

According to my understanding, That 'crypto_skcipher_encrypt(request)' 
returns '-EBUSY '

means the caller should call this API again with the request. However, 
as my knowledge in

'dm-crypt', this means the caller need not call this request again, 
because 'dm-crypt' thinks

that the driver of 'crypto_skcipher_encrypt' will send the request again 
as it is not busy.

    So, my question is: what's the meaning of 
'crypto_skcipher_encrypt(request)' returning '-EBUSY '?


Cheers,

Zaibo


.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Question] Confusion of the meaning for encrypto API's return value
  2019-12-16  7:18 ` Xu Zaibo
@ 2019-12-16 17:32   ` Eric Biggers
  -1 siblings, 0 replies; 4+ messages in thread
From: Eric Biggers @ 2019-12-16 17:32 UTC (permalink / raw)
  To: Xu Zaibo; +Cc: forest.zhouchang, dm-devel, linux-crypto, zhangwei375

On Mon, Dec 16, 2019 at 03:18:54PM +0800, Xu Zaibo wrote:
> Hi,
> 
> I get a confusion.
> 
> According to my understanding, That 'crypto_skcipher_encrypt(request)'
> returns '-EBUSY '
> 
> means the caller should call this API again with the request. However, as my
> knowledge in
> 
> 'dm-crypt', this means the caller need not call this request again, because
> 'dm-crypt' thinks
> 
> that the driver of 'crypto_skcipher_encrypt' will send the request again as
> it is not busy.
> 
>    So, my question is: what's the meaning of
> 'crypto_skcipher_encrypt(request)' returning '-EBUSY '?
> 
> 
> Cheers,
> 

-EBUSY means that the request was put on the backlog.  It will still be
completed eventually.

- Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Question] Confusion of the meaning for encrypto API's return value
@ 2019-12-16 17:32   ` Eric Biggers
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Biggers @ 2019-12-16 17:32 UTC (permalink / raw)
  To: Xu Zaibo; +Cc: linux-crypto, dm-devel, forest.zhouchang, zhangwei375

On Mon, Dec 16, 2019 at 03:18:54PM +0800, Xu Zaibo wrote:
> Hi,
> 
> I get a confusion.
> 
> According to my understanding, That 'crypto_skcipher_encrypt(request)'
> returns '-EBUSY '
> 
> means the caller should call this API again with the request. However, as my
> knowledge in
> 
> 'dm-crypt', this means the caller need not call this request again, because
> 'dm-crypt' thinks
> 
> that the driver of 'crypto_skcipher_encrypt' will send the request again as
> it is not busy.
> 
>    So, my question is: what's the meaning of
> 'crypto_skcipher_encrypt(request)' returning '-EBUSY '?
> 
> 
> Cheers,
> 

-EBUSY means that the request was put on the backlog.  It will still be
completed eventually.

- Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-16 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-16  7:18 [Question] Confusion of the meaning for encrypto API's return value Xu Zaibo
2019-12-16  7:18 ` Xu Zaibo
2019-12-16 17:32 ` Eric Biggers
2019-12-16 17:32   ` Eric Biggers

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.