Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1232565 > unrolled thread
| Started by | Joonsoo Kim <iamjoonsoo.kim@lge.com> |
|---|---|
| First post | 2015-09-25 07:30 +0200 |
| Last post | 2015-09-25 10:00 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 1/9] crypto: introduce decompression API that can be called via sharable tfm object Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2015-09-25 07:30 +0200
Re: [PATCH v3 1/9] crypto: introduce decompression API that can be called via sharable tfm object Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-09-25 10:00 +0200
Re: [PATCH v3 1/9] crypto: introduce decompression API that can be called via sharable tfm object Herbert Xu <herbert@gondor.apana.org.au> - 2015-09-25 10:00 +0200
| From | Joonsoo Kim <iamjoonsoo.kim@lge.com> |
|---|---|
| Date | 2015-09-25 07:30 +0200 |
| Subject | Re: [PATCH v3 1/9] crypto: introduce decompression API that can be called via sharable tfm object |
| Message-ID | <qctK2-qx-1@gated-at.bofh.it> |
On Mon, Sep 21, 2015 at 03:18:17PM +0900, Sergey Senozhatsky wrote:
> On (09/18/15 14:19), Joonsoo Kim wrote:
> [..]
> > static int __init lzo_mod_init(void)
> > diff --git a/include/linux/crypto.h b/include/linux/crypto.h
> > index e71cb70..31152b1 100644
> > --- a/include/linux/crypto.h
> > +++ b/include/linux/crypto.h
> > @@ -355,6 +355,8 @@ struct compress_alg {
> > unsigned int slen, u8 *dst, unsigned int *dlen);
> > int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
> > unsigned int slen, u8 *dst, unsigned int *dlen);
> > + int (*coa_decompress_noctx)(const u8 *src, unsigned int slen,
> > + u8 *dst, unsigned int *dlen);
> > };
> >
> >
> > @@ -538,6 +540,9 @@ struct compress_tfm {
> > int (*cot_decompress)(struct crypto_tfm *tfm,
> > const u8 *src, unsigned int slen,
> > u8 *dst, unsigned int *dlen);
> > + int (*cot_decompress_noctx)(struct crypto_tfm *tfm,
> > + const u8 *src, unsigned int slen,
> > + u8 *dst, unsigned int *dlen);
> > };
> >
> > #define crt_ablkcipher crt_u.ablkcipher
> > @@ -1836,6 +1841,14 @@ static inline void crypto_free_comp(struct crypto_comp *tfm)
> > crypto_free_tfm(crypto_comp_tfm(tfm));
> > }
> >
> > +struct crypto_comp *crypto_alloc_comp_noctx(const char *alg_name,
> > + u32 type, u32 mask);
> > +
>
> this should be EXPORT_SYMBOL_GPL().
>
Will do in next version.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Date | 2015-09-25 10:00 +0200 |
| Message-ID | <qcw5b-3AI-1@gated-at.bofh.it> |
| In reply to | #1232565 |
On (09/25/15 14:26), Joonsoo Kim wrote: [..] > > > +struct crypto_comp *crypto_alloc_comp_noctx(const char *alg_name, > > > + u32 type, u32 mask); > > > + > > > > this should be EXPORT_SYMBOL_GPL(). > > > > Will do in next version. > so you want to go with _noctx() callbacks implementation? that CRYPTO_ALG_TFM_MAY_SHARE flag looks quite simple to me. or you guys hate it? -ss -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Herbert Xu <herbert@gondor.apana.org.au> |
|---|---|
| Date | 2015-09-25 10:00 +0200 |
| Message-ID | <qcw5b-3AI-3@gated-at.bofh.it> |
| In reply to | #1232637 |
On Fri, Sep 25, 2015 at 04:56:10PM +0900, Sergey Senozhatsky wrote: > > so you want to go with _noctx() callbacks implementation? > that CRYPTO_ALG_TFM_MAY_SHARE flag looks quite simple to > me. or you guys hate it? I think we should just replace crypto_pcomp with a new interface that does what you guys want. The current crypto_compress interface is simply broken because it stores per-request state in the tfm. This runs counter to every other crypto type, e.g., hash or aead. The tfm should only hold shared data, e.g., compression algorithm parameters but not per-request state. As the original pcomp author has disappeared I think you could even drop the partial stuff and just do a straight compression interface. Cheers, -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web