LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   True stream cipher in crypto API module? (https://www.linuxquestions.org/questions/linux-security-4/true-stream-cipher-in-crypto-api-module-345911/)

ta0kira 07-23-2005 02:10 AM

True stream cipher in crypto API module?
 
I'm creating a crypto API kernel module and my algorithm is a true stream cipher. The only modes I see available for API modules, however, use block ciphers in either block or streamed modes. There is absolutely no way I can make my algorithm a block cipher and maintain it's integrity (i.e. have it still hold true to the testing I've done with it). Does anyone know how to enable a normal stream mode (i.e. not chained by the API)? What I really need is to be able to change my context with each block and have the API call my cia_setkey before each new cipher operation to reset my context (or just give me a new context each time). Looking through cipher.h, it looks like crypto_tfm might work, I'm wondering if that will work with cryptoloop or dm-crypt. I did a search for this before posting and came up with nothing, so I'll be happy if anyone even knows what I am talking about. Thanks.
ta0kira


All times are GMT -5. The time now is 04:05 PM.