Lines Matching defs:key

20  * Internal used values for the version field of the key header.
23 #define TOKVER_EP11_AES 0x03 /* EP11 AES key blob (old style) */
24 #define TOKVER_EP11_AES_WITH_HEADER 0x06 /* EP11 AES key blob with header */
25 #define TOKVER_EP11_ECC_WITH_HEADER 0x07 /* EP11 ECC key blob with header */
27 /* inside view of an EP11 secure key blob */
34 u8 wkvp[16]; /* wrapping key verification pattern */
35 u64 attr; /* boolean key attributes */
43 /* check ep11 key magic to find out if this is an ep11 key blob */
44 static inline bool is_ep11_keyblob(const u8 *key)
46 struct ep11keyblob *kb = (struct ep11keyblob *) key;
52 * Simple check if the key blob is a valid EP11 AES key blob with header.
53 * If checkcpacfexport is enabled, the key is also checked for the
54 * attributes needed to export this key for CPACF use.
58 const u8 *key, size_t keylen, int checkcpacfexp);
61 * Simple check if the key blob is a valid EP11 ECC key blob with header.
62 * If checkcpacfexport is enabled, the key is also checked for the
63 * attributes needed to export this key for CPACF use.
67 const u8 *key, size_t keylen, int checkcpacfexp);
70 * Simple check if the key blob is a valid EP11 AES key blob with
71 * the header in the session field (old style EP11 AES key).
72 * If checkcpacfexport is enabled, the key is also checked for the
73 * attributes needed to export this key for CPACF use.
77 const u8 *key, size_t keylen, int checkcpacfexp);
91 u8 cur_wkvp[32]; /* current wrapping key verification pattern */
92 u8 new_wkvp[32]; /* new wrapping key verification pattern */
107 * Generate (random) EP11 AES secure key.
113 * Generate EP11 AES secure key with given clear key value.
127 * key for this domain. When a wkvp is given there will aways be a re-fetch
141 * Derive proteced key from EP11 key blob (AES and ECC keys).
143 int ep11_kblob2protkey(u16 card, u16 dom, const u8 *key, size_t keylen,