From: Stephan Mueller <smueller@chronox.de>
To: Gadre Nayan <gadrenayan@gmail.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: skcipher
Date: Mon, 02 May 2016 07:51:21 +0200 [thread overview]
Message-ID: <1544687.NtFoiUyCFs@tauon.atsec.com> (raw)
In-Reply-To: <CAKJ7aR5-GbkuFPQkw7DdKJLCKV48LzRY-WUeTeayZkK_h7cTUQ@mail.gmail.com>
Am Montag, 2. Mai 2016, 11:14:01 schrieb Gadre Nayan:
Hi Gadre,
> Hello,
>
> I have read the crypto library documentation on chronox.de.
>
> I used there sample code for symmetric key cipher operation.
> However in the check:
>
> skcipher = crypto_alloc_skcipher("cbc-aes-aesni", 0, 0);
> if (IS_ERR(skcipher)) {
> pr_info("could not allocate skcipher handle\n");
> return PTR_ERR(skcipher);
> }
>
> I get could not allocate skcipher handle.
>
> I have loaded all possible related modules for crypto:
> lsmod (relevant):
> algif_skcipher 32768 0
> algif_hash 20480 0
> algif_aead 20480 0
> af_alg 24576 3 algif_aead,algif_hash,algif_skcipher
> cryptd
> ablk_helper.
>
> What am I missing here?
>
> Also IS_ERR checks if the skcipher value may be <1000, it may include
> the NULL check right?.
The allocation of the cipher failed. Please check /proc/crypto whether you
have the cipher registered with the kernel crypto API.
The module listing does not show the AESNI cipher module.
Ciao
Stephan
next prev parent reply other threads:[~2016-05-02 5:51 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-02 5:44 skcipher Gadre Nayan
2016-05-02 5:51 ` Stephan Mueller [this message]
2016-05-02 15:30 ` skcipher Gadre Nayan
2016-05-02 15:33 ` skcipher Stephan Mueller
2016-05-03 5:04 ` skcipher Gadre Nayan
2016-05-03 5:16 ` skcipher 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=1544687.NtFoiUyCFs@tauon.atsec.com \
--to=smueller@chronox.de \
--cc=gadrenayan@gmail.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