Linux cryptographic layer development
 help / color / mirror / Atom feed
* skcipher
@ 2016-05-02  5:44 Gadre Nayan
  2016-05-02  5:51 ` skcipher Stephan Mueller
  0 siblings, 1 reply; 6+ messages in thread
From: Gadre Nayan @ 2016-05-02  5:44 UTC (permalink / raw)
  To: linux-crypto

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?.

Thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-03  5:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02  5:44 skcipher Gadre Nayan
2016-05-02  5:51 ` skcipher Stephan Mueller
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox