Re: CRYPTO_TFM_REQ_MASK and CRYPTO_TFM_RES_MASK

2009-12-12 Thread Herbert Xu
Dimitrios Siganos wrote: > After sending the email, I realised what's happening... > crypto_cipher_setkey seems to be used that way only when a child cipher > is used by another (parent) cipher as a way to delegate work. > > It seems that crypto_cipher_setkey accepts a number of request flags

Re: CRYPTO_TFM_REQ_MASK and CRYPTO_TFM_RES_MASK

2009-12-11 Thread Dimitrios Siganos
rrect me, if I am wrong. Dimitris Dimitrios Siganos wrote: Hi, Could someone explain what the masks CRYPTO_TFM_REQ_MASK and CRYPTO_TFM_RES_MASK do and why they must be manipulated before and after crypto_cipher_setkey(...)? Here is an example use (from crypto_pcbc_s

CRYPTO_TFM_REQ_MASK and CRYPTO_TFM_RES_MASK

2009-12-11 Thread Dimitrios Siganos
Hi, Could someone explain what the masks CRYPTO_TFM_REQ_MASK and CRYPTO_TFM_RES_MASK do and why they must be manipulated before and after crypto_cipher_setkey(...)? Here is an example use (from crypto_pcbc_setkey): crypto_cipher_clear_flags(child, CRYPTO_TFM_REQ_MASK