Re: [PATCH v2 6/6] KEYS: trusted: Introduce support for NXP CAAM-based trusted keys

From
Richard Weinberger <richard@nod.at>
Date
2021-07-01 20:43:02
Also in
keyrings, linux-crypto, linux-doc, linux-security-module, lkml
Reply to
Ahmad Fatoum, 2021-06-22
Ahmad,

----- Ursprüngliche Mail -----
Von: "Ahmad Fatoum" [off-list ref]
+static struct caam_blob_priv *blobifier;
+
+#define KEYMOD "kernel:trusted"
I'm still think that hard coding the key modifier is not wise.
As I said[0], there are folks out there that want to provide their own modifier,
so it is not only about being binary compatible with other CAAM blob patches in the wild.

I'll happily implement that feature after your patches got merged but IMHO we should first agree on an interface.
How about allowing another optional parameter to Opt_new and Opt_load and having a key modifier
per struct trusted_key_payload instance?

Thanks,
//richard

[0]
https://patchwork.kernel.org/project/linux-crypto/patch/319e558e1bd19b80ad6447c167a2c3942bdafea2.1615914058.git-series.a.fatoum@pengutronix.de/#24085397
Thread (18 messages) 18 messages, 5 authors, last reply 2021-07-21
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help