Re: [PATCH resend][CRYPTO]: RSA algorithm patch

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andi Kleen <andi@...>
Cc: <herbert@...>, <linux-kernel@...>, <randy.dunlap@...>, <indan@...>
Date: Monday, April 2, 2007 - 7:50 am

Andi Kleen wrote:

The main purpose behind the creation of this module was to create the
cryptographic infrastructure to develop an in-kernel system of signed
modules.

The best environment to deploy such functionality is in updating by remote,
executable code (programs, libs and modules) on embedded devices running
Linux, that have some form of kernel physical security, so one can't 
tamper the
kernel, but can read it. In this case only a public key would be 
revealed. The
vendor of the devices can sign and distribute/update executable code to 
the devices,
and the kernel will not load/run any of them if they don't match with 
their signatures.
The signature can be embedded in the elf, so this system is portable and 
centralized.
Although this functionality can be achieved using userland helper 
programs this may
create the need to physically secure entire filesystems which adds to 
the cost of
developing such devices. In such cases one needs to use asymmetric 
cryptography
because in the case of symmetric it would be very easy to give away the 
key and
end with having all your devices being attacked.

There are already some systems that implement and utilize such 
functionality that
use windows platforms, and other Linux distros that use userland 
programs to do
so, assuming physical security of the host computer.

Moreover a same system that would use hashes is easier to brake and more 
difficult
to update each time new code must be loaded to the host devices.

See also this thread

http://lkml.org/lkml/2007/3/19/447



-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH resend][CRYPTO]: RSA algorithm patch, Tasos Parisinos, (Mon Apr 2, 5:52 am)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Andi Kleen, (Mon Apr 2, 8:27 am)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Tasos Parisinos, (Mon Apr 2, 7:50 am)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Bill Davidsen, (Fri Apr 6, 5:30 pm)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Indan Zupancic, (Fri Apr 6, 7:06 pm)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Bill Davidsen, (Fri Apr 6, 11:53 pm)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Andi Kleen, (Mon Apr 2, 9:28 am)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Tasos Parisinos, (Mon Apr 2, 11:10 am)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Pavel Machek, (Tue Apr 3, 12:03 pm)
Re: [PATCH resend][CRYPTO]: RSA algorithm patch, Andi Kleen, (Mon Apr 2, 11:28 am)