Lines Matching +full:non +full:- +full:secure +full:- +full:domain
1 /* SPDX-License-Identifier: GPL-2.0+ */
18 #define TOKTYPE_NON_CCA 0x00 /* Non-CCA key token */
42 /* inside view of a CCA secure key token (only type 0x01 version 0x04) */
82 /* AES-128 512 640 */
83 /* AES-192 576 640 */
84 /* AES-256 640 640 */
98 /* inside view of an CCA secure ECC private key */
108 u8 htype; /* hash method, 0x02 for SHA-256 */
134 * Simple check if the token is a valid CCA secure AES data key
142 * Simple check if the token is a valid CCA secure AES cipher key
153 * Simple check if the token is a valid CCA secure ECC private
161 * Generate (random) CCA AES DATA secure key.
163 int cca_genseckey(u16 cardnr, u16 domain, u32 keybitsize, u8 *seckey,
167 * Generate CCA AES DATA secure key with given clear key value.
169 int cca_clr2seckey(u16 cardnr, u16 domain, u32 keybitsize,
173 * Derive proteced key from an CCA AES DATA secure key.
175 int cca_sec2protkey(u16 cardnr, u16 domain,
180 * Generate (random) CCA AES CIPHER secure key.
182 int cca_gencipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags,
186 * Derive proteced key from CCA AES cipher secure key.
188 int cca_cipher2protkey(u16 cardnr, u16 domain, const u8 *ckey,
193 * Build CCA AES CIPHER secure key with a given clear key value.
195 int cca_clr2cipherkey(u16 cardnr, u16 domain, u32 keybitsize, u32 keygenflags,
200 * Derive proteced key from CCA ECC secure private key.
202 int cca_ecc2protkey(u16 cardnr, u16 domain, const u8 *key,
208 int cca_query_crypto_facility(u16 cardnr, u16 domain,
216 * - apqn is online and is in fact a CCA apqn
217 * - if cardnr is not FFFF only apqns with this cardnr
218 * - if domain is not FFFF only apqns with this domainnr
219 * - if minhwtype > 0 only apqns with hwtype >= minhwtype
220 * - if cur_mkvp != 0 only apqns where cur_mkvp == mkvp
221 * - if old_mkvp != 0 only apqns where old_mkvp == mkvp
223 * 0 = AES_MK_SET - AES MK set, 1 = APKA MK_SET - APKA MK set
227 * If no apqn meeting the criteria is found, -ENODEV is returned.
229 int cca_findcard2(u32 *apqns, u32 *nr_apqns, u16 cardnr, u16 domain,