Linux cryptographic layer development
 help / color / mirror / Atom feed
From: Vasile Catalin-B50542 <catalin.vasile@freescale.com>
To: <linux-crypto@vger.kernel.org>
Subject: aead_alg request size (request context size)
Date: Mon, 24 Aug 2015 15:52:49 +0300	[thread overview]
Message-ID: <55DB13A1.4000703@freescale.com> (raw)

How can I make aead transformations on the new API allocate some context 
space inside
the aead_request?
Description/comments of aead_alg->init() and crypto_alg->cra_init() 
suggest that they are
triggered after the tfm object has already been allocated, so setting 
crypto_aead->reqsize
has no effect.
Also, it seems that if aead_alg->init() is triggered, but 
crypto_alg->cra_init() is not.
I see a call to alg->cra_init() from crypto_create_tfm, when allocating 
an aead transformation,
but my cra_init() is not actually called. Instead aead_alg->init() is 
not seen anywhere, but
indeed it is triggered at some time. Where does it get called?

             reply	other threads:[~2015-08-24 12:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-24 12:52 Vasile Catalin-B50542 [this message]
2015-08-24 13:16 ` aead_alg request size (request context size) Stephan Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DB13A1.4000703@freescale.com \
    --to=catalin.vasile@freescale.com \
    --cc=linux-crypto@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox