#define EP11_API_V1 1/* min EP11 API, default if no higher api required */ #define EP11_API_V4 4/* supported EP11 API for the ep11misc cprbs */ #define EP11_API_V6 6/* min EP11 API for some cprbs in SE environment */ #define EP11_STRUCT_MAGIC 0x1234 #define EP11_BLOB_PKEY_EXTRACTABLE 0x00200000
/* check ep11 key magic to find out if this is an ep11 key blob */ staticinlinebool is_ep11_keyblob(const u8 *key)
{ struct ep11keyblob *kb = (struct ep11keyblob *)key;
/* *SimplecheckifthekeyblobisavalidEP11AESkeyblobwithheader. *Ifcheckcpacfexportisenabled,thekeyisalsocheckedforthe *attributesneededtoexportthiskeyforCPACFuse. *Returns0onsuccessorerrnovalueonfailure.
*/ int ep11_check_aes_key_with_hdr(debug_info_t *dbg, int dbflvl, const u8 *key, u32 keylen, int checkcpacfexp);
/* *SimplecheckifthekeyblobisavalidEP11ECCkeyblobwithheader. *Ifcheckcpacfexportisenabled,thekeyisalsocheckedforthe *attributesneededtoexportthiskeyforCPACFuse. *Returns0onsuccessorerrnovalueonfailure.
*/ int ep11_check_ecc_key_with_hdr(debug_info_t *dbg, int dbflvl, const u8 *key, u32 keylen, int checkcpacfexp);
/* *SimplecheckifthekeyblobisavalidEP11AESkeyblobwith *theheaderinthesessionfield(oldstyleEP11AESkey). *Ifcheckcpacfexportisenabled,thekeyisalsocheckedforthe *attributesneededtoexportthiskeyforCPACFuse. *Returns0onsuccessorerrnovalueonfailure.
*/ int ep11_check_aes_key(debug_info_t *dbg, int dbflvl, const u8 *key, u32 keylen, int checkcpacfexp);
/* EP11 card info struct */ struct ep11_card_info {
u32 API_ord_nr; /* API ordinal number */
u16 FW_version; /* Firmware major and minor version */ char serial[16]; /* serial number string (16 ascii, no 0x00 !) */
u64 op_mode; /* card operational mode(s) */
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.