Userspace API proposal was: Re: [PATCH 1/1] RFC: Add CryptoAPI User Space Interface Support

2008-05-14 Thread Sebastian Siewior
* Herbert Xu | 2008-05-14 19:03:11 [+0800]: On Wed, May 14, 2008 at 12:32:24PM +0200, Sebastian Siewior wrote: This should add support for OpenSSL. Please note that user of this patch musts patch OpenSSL. The OpenSSL patch can be found in OCF-Linux as this interface uses the same I/O control

Re: Userspace API proposal was: Re: [PATCH 1/1] RFC: Add CryptoAPI User Space Interface Support

2008-05-14 Thread Evgeniy Polyakov
On Wed, May 14, 2008 at 01:57:30PM +0200, Sebastian Siewior ([EMAIL PROTECTED]) wrote: Great. Here a few ideas for a new interface: - /dev/crypto: - open file, creates a new ctx which may be one of crypto/hash/... - set type via ioctl / netlink - set key / other attributes via ioctl

Re: Userspace API proposal was: Re: [PATCH 1/1] RFC: Add CryptoAPI User Space Interface Support

2008-05-14 Thread Evgeniy Polyakov
Hi. On Wed, May 14, 2008 at 08:40:43AM -0700, Loc Ho ([EMAIL PROTECTED]) wrote: Option #2: 1. Use syscall with algorithm name and its associated parameters 2. Operation such as encrypt, decrypt, hash, and etc are operated via another two system call - crypto_read and crypto_write 3. For this