Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-13 Thread Joonsoo Kim
On Thu, Aug 13, 2015 at 03:29:18PM +0800, Herbert Xu wrote: > On Thu, Aug 13, 2015 at 04:30:31PM +0900, Joonsoo Kim wrote: > > > > How about introducing new functions to search supported algorithm in > > kernel-side? As crypto API is used in more places, this interface > > would be requested more.

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-13 Thread Herbert Xu
On Thu, Aug 13, 2015 at 04:30:31PM +0900, Joonsoo Kim wrote: > > How about introducing new functions to search supported algorithm in > kernel-side? As crypto API is used in more places, this interface > would be requested more. Defined list weaken the advantage of strong > point of generic crypto

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-13 Thread Joonsoo Kim
On Thu, Aug 13, 2015 at 02:38:23PM +0800, Herbert Xu wrote: > On Thu, Aug 13, 2015 at 03:37:55PM +0900, Joonsoo Kim wrote: > > > > Is there any way to access netlink interface and get the output from > > kernel-side? I'd like to show information through > > "/sys/block/zramX/comp_algorithm", becaus

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-12 Thread Herbert Xu
On Thu, Aug 13, 2015 at 03:37:55PM +0900, Joonsoo Kim wrote: > > Is there any way to access netlink interface and get the output from > kernel-side? I'd like to show information through > "/sys/block/zramX/comp_algorithm", because some user program can be > broken if we change output of userspace e

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-12 Thread Joonsoo Kim
On Thu, Aug 13, 2015 at 11:19:54AM +0800, Herbert Xu wrote: > On Thu, Aug 13, 2015 at 11:24:13AM +0900, Joonsoo Kim wrote: > > Until now, zram uses compression algorithm through direct call > > to core algorithm function, but, it has drawback that we need to add > > compression algorithm manually t

Re: [PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-12 Thread Herbert Xu
On Thu, Aug 13, 2015 at 11:24:13AM +0900, Joonsoo Kim wrote: > Until now, zram uses compression algorithm through direct call > to core algorithm function, but, it has drawback that we need to add > compression algorithm manually to zram. If we don't do that, we cannot > utilize various compression

[PATCH 1/2] crypto: export crypto_alg_list and rwsem

2015-08-12 Thread Joonsoo Kim
Until now, zram uses compression algorithm through direct call to core algorithm function, but, it has drawback that we need to add compression algorithm manually to zram. If we don't do that, we cannot utilize various compression algorithms in the system. To improve this situation, zram will be ch