All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] cryptsetup with kernel crypto backend and sha384
@ 2018-12-27 10:38 Simon Weissberg
  2019-01-03  8:24 ` Milan Broz
  0 siblings, 1 reply; 2+ messages in thread
From: Simon Weissberg @ 2018-12-27 10:38 UTC (permalink / raw)
  To: dm-crypt

Hi,

I noticed that the struct hash_algs in crypto_kernel.c does not contain an entry for the sha384 algorithm. (https://gitlab.com/cryptsetup/cryptsetup/blob/v2.0.6/lib/crypto_backend/crypto_kernel.c#L50)

This prevents sha384 from being used with the kernel crypto backend while it is usable with the gcrypt backend. Is there a particular reason for this?

Best regards,
Simon Fabian Weißberg
Software Developer

Rohde & Schwarz Cybersecurity GmbH
Lise-Meitner-Allee 4, D-44801 Bochum
www.cybersecurity.rohde-schwarz.com

Executive Board: Reik Hesselbarth; Company's Place of Business: Munich
Commercial Register No.: HRB 160333, VAT Identification No.: DE 295078969
WEEE Register Nr.: DE 138 891 79

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

* Re: [dm-crypt] cryptsetup with kernel crypto backend and sha384
  2018-12-27 10:38 [dm-crypt] cryptsetup with kernel crypto backend and sha384 Simon Weissberg
@ 2019-01-03  8:24 ` Milan Broz
  0 siblings, 0 replies; 2+ messages in thread
From: Milan Broz @ 2019-01-03  8:24 UTC (permalink / raw)
  To: Simon Weissberg, dm-crypt

On 27/12/2018 11:38, Simon Weissberg wrote:
> I noticed that the struct hash_algs in crypto_kernel.c does not
> contain an entry for the sha384 algorithm.
> (https://gitlab.com/cryptsetup/cryptsetup/blob/v2.0.6/lib/crypto_backend/crypto_kernel.c#L50)
>
>  This prevents sha384 from being used with the kernel crypto backend
> while it is usable with the gcrypt backend. Is there a particular
> reason for this?

It is just workaround for the crypto backend (there was not a reliable way to get some
information from kernel without crypto module already loaded), I will either add some more
dynamic option or add the sha384 to the list (despite I am not sure why you want to use it :).

Please could you just create a new issue for it to not forget about it?
https://gitlab.com/cryptsetup/cryptsetup/issues

Thanks,
Milan

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

end of thread, other threads:[~2019-01-03  8:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-27 10:38 [dm-crypt] cryptsetup with kernel crypto backend and sha384 Simon Weissberg
2019-01-03  8:24 ` Milan Broz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.