All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] veritysetup format without --salt
@ 2019-12-12  8:02 gilmore
  2019-12-13 14:45 ` Milan Broz
  0 siblings, 1 reply; 3+ messages in thread
From: gilmore @ 2019-12-12  8:02 UTC (permalink / raw)
  To: dm-crypt

[-- Attachment #1: Type: text/html, Size: 766 bytes --]

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

* Re: [dm-crypt] veritysetup format without --salt
  2019-12-12  8:02 [dm-crypt] veritysetup format without --salt gilmore
@ 2019-12-13 14:45 ` Milan Broz
  2019-12-13 16:43   ` gilmore
  0 siblings, 1 reply; 3+ messages in thread
From: Milan Broz @ 2019-12-13 14:45 UTC (permalink / raw)
  To: gilmore; +Cc: dm-crypt

On 12/12/2019 09:02, gilmore@gmx-topmail.de wrote:
> Hi, If 'veritysetup format <data_device> <hash_device>' is called
> without '--salt', will there a salt (from a random number generator)
> be used to calculate the digest? If yes, can you please point me to
> the spot in the veritysetup source code where the salt is generated
> or imported?

Userspace tools (like veritysetup) have no direct access to a RNG,
it is inside libcryptsetup library API.
Search for _crypt_format_verity() function...

In today version of devel git here
https://gitlab.com/cryptsetup/cryptsetup/blob/master/lib/setup.c#L2046

Milan

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

* Re: [dm-crypt] veritysetup format without --salt
  2019-12-13 14:45 ` Milan Broz
@ 2019-12-13 16:43   ` gilmore
  0 siblings, 0 replies; 3+ messages in thread
From: gilmore @ 2019-12-13 16:43 UTC (permalink / raw)
  To: Milan Broz, dm-crypt

Found it, thanks a lot!

Michael

Am 13.12.2019 um 15:45 schrieb Milan Broz:
> On 12/12/2019 09:02, gilmore@gmx-topmail.de wrote:
>> Hi, If 'veritysetup format <data_device> <hash_device>' is called
>> without '--salt', will there a salt (from a random number generator)
>> be used to calculate the digest? If yes, can you please point me to
>> the spot in the veritysetup source code where the salt is generated
>> or imported?
>
> Userspace tools (like veritysetup) have no direct access to a RNG,
> it is inside libcryptsetup library API.
> Search for _crypt_format_verity() function...
>
> In today version of devel git here
> https://gitlab.com/cryptsetup/cryptsetup/blob/master/lib/setup.c#L2046
>
> Milan

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

end of thread, other threads:[~2019-12-13 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  8:02 [dm-crypt] veritysetup format without --salt gilmore
2019-12-13 14:45 ` Milan Broz
2019-12-13 16:43   ` gilmore

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.