CRYPTO_DATA_RAW input CRYPTO_DATA_UIO output ?

Darren J Moffat Darren.Moffat at Sun.COM
Wed Jan 2 02:06:34 PST 2008


Krishna Yenduri wrote:
> Darren J Moffat wrote:
>> I wanted to check that this should be possible.
>>
>> Using AES in CCM mode I want to use a uio_t because I need to allocate 
>> memory for the data and the mac in a different way.   The data I need 
>> to allocated from a specific kmem_cache.  The mac I need to fill in an 
>> already allocated structure.
>>
>> I should be possible if I construct the output uio_t with the 
>> appropriate pointers to the allocated memory, right ?
>>   
> 
> Yes. Keep in mind that this would require you to know the sizes of
> both the encrypted/decrypted data and the computed MAC in advance.

I believe I do know all that in advance so I'm going to give this 
approach a try.

-- 
Darren J Moffat


More information about the crypto-discuss mailing list