SHA-1 hash calculate in Kernel.

Bernd Petrovitsch bernd at petrovitsch.priv.at
Sat Aug 29 07:49:19 EDT 2015


On Fre, 2015-08-28 at 15:36 +0800, lx wrote:
[...]
>     //way 2
>     /*
>     char *plaintext = kmalloc(sizeof(char), GFP_KERNEL);
>     plaintext = "c";

I don't think that this line doesn't give any warning ...

Kind regards,
	Bernd
-- 
"I dislike type abstraction if it has no real reason. And saving
on typing is not a good reason - if your typing speed is the main
issue when you're coding, you're doing something seriously wrong."
    - Linus Torvalds




More information about the Kernelnewbies mailing list