DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] PKCS#11 support in cryptsetup
@ 2016-05-07  7:03 Johanna A
  2016-05-07 19:32 ` Michael Kjörling
  2016-05-15 17:48 ` Milan Broz
  0 siblings, 2 replies; 4+ messages in thread
From: Johanna A @ 2016-05-07  7:03 UTC (permalink / raw)
  To: dm-crypt

I am aware that this has been previously discussed in the following threads:
http://www.saout.de/pipermail/dm-crypt/2013-May/003329.html
http://www.saout.de/pipermail/dm-crypt/2015-April/004667.html

I have been working on bringing PKCS#11 support to systemd's
"cryptsetup" (that uses libcryptsetup). However, maintainers of
systemd has suggested that cryptsetup may be a better place for this
functionality.

The relevant discussions on systemd are:
https://github.com/systemd/systemd/pull/2776
https://github.com/systemd/systemd/pull/3007

In a comment to the last pull request I suggest adding pkcs#11 support
in cryptsetup in a similar way as to how keyfiles are handled. In a
way keyfiles and pkcs#11 data objects are quite similar. Both are
accessiable via an URI (https://tools.ietf.org/html/rfc7512), both can
be read depending on size or until EOF.

The main problem is that pkcs#11 are accessed through a provider,
rather than a filesystem. Providers are not included in the kernel and
as such are less "accessible". I have tried to find a standard way of
enumerating providers in UNIX systems but unfortunately there seems to
be none. The closest seem to be p11-kit
(https://p11-glue.freedesktop.org/p11-kit.html).
I would suggest that the solution to this would be to accept a
provider through arguments.

What are your thoughts on this?

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

end of thread, other threads:[~2016-05-15 17:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-07  7:03 [dm-crypt] PKCS#11 support in cryptsetup Johanna A
2016-05-07 19:32 ` Michael Kjörling
2016-05-07 19:57   ` Johanna A
2016-05-15 17:48 ` Milan Broz

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