Re: Intermediate Hash states

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

 



Hi Muller ,

Thanks for the information provided.

I am little confused between current scenario (multiple threads will
send multiple requests to crypto H/W) and export/import.

Please can you let me know when export/imports can be used in real time?

I Have seen many references of these method(export/import) in open
source , but not really sure when its being used in real time.

BR,
Srisowj

On Sat, Feb 21, 2015 at 1:07 AM, Stephan Mueller <smueller@xxxxxxxxxx> wrote:
> Am Donnerstag, 19. Februar 2015, 21:48:30 schrieb sri sowj:
>
> Hi sri,
>
>> Hi ,
>>
>> I am trying to understand Hashing Algorithms implementation in linux kernel
>> .
>>
>> I am really not sure on how to deal with following scenario.
>>
>> assume when App1 is in middle of
>> execution(crypto_ahash_init/update/update...) ,App2 sends a request
>> may be from another cpu in multi-core system to underlying crypto
>> driver .
>> Then essentially input1 has to save its  state(intermediate Hash) and
>> serves App2 request.
>>
>> App1 ---------> Linux kernel crypto driver
>>
>>        crypto_ahash_init(input1);
>>         crypto_ahash_update(input1);
>>        ..................
>>        ..................
>>         crypto_ahash_update(input1); // multple Hash requests
>>        ..................
>>        ..................
>>     crypto_ahash_final()
>>
>>
>>
>> App2 ---------> Linux kernel crypto driver
>>
>>         crypto_ahash_init(input2);
>>         crypto_ahash_update(input2);
>>
>>
>> Here in this scenario how to track,save and restore the Hash state for App1
>> ?
>
> The ahash (ablkcipher too) uses kernel threads. Those are scheduled like
> normal processes, including the context switching.
>>
>> BR,
>> Srisowj
>> --
>> 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
>
>
> --
> 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