Re: [PATCH] crypto/drbg: report backend_cra_name when allocation fails
From: Stephan Mueller
Date: Wed Jun 10 2015 - 11:10:02 EST
Am Wednesday 10 June 2015, 22:27:48 schrieb Sergey Senozhatsky:
Hi Sergey,
>Be more verbose and also report ->backend_cra_name when
>crypto_alloc_shash() or crypto_alloc_cipher() fail in
>drbg_init_hash_kernel() or drbg_init_sym_kernel()
>correspondingly.
>
>Example
> DRBG: could not allocate digest TFM handle: hmac(sha256)
>
>Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
Headscratch -- the Kconfig should have HMAC selected for compilation. When
HMAC is available (regardless whether it is a module or not), it is pulled in
by the kernel crypto API. Thus, there should not have been the error that HMAC
is missing.
Can you send your .config file, please?
Ciao
Stephan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/