Re: [PATCH v5 4/4] ima: Support EC keys for signature verification

From
David Howells <dhowells@redhat.com>
Date
2021-02-01 13:22:50
Also in
keyrings, linux-crypto, lkml
Vitaly Chikunov [off-list ref] wrote:
quoted
+static inline
+const struct public_key *asymmetric_key_public_key(const struct key *key)
+{
+	return key->payload.data[asym_crypto];
+}
I wonder why use this accessor which does nothing else, because in all
other places payload.data[asym_crypto] accessed directly.
We should probably move to using wrappers rather than accessing directly for
type safety.

David
Thread (1 message) 1 message, 1 author, last reply 2021-02-01
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