Lines Matching full:token
16 /* Key token types */
17 #define TOKTYPE_NON_CCA 0x00 /* Non-CCA key token */
18 #define TOKTYPE_CCA_INTERNAL 0x01 /* CCA internal sym key token */
19 #define TOKTYPE_CCA_INTERNAL_PKA 0x1f /* CCA internal asym key token */
22 #define TOKVER_PROTECTED_KEY 0x01 /* Protected key token */
23 #define TOKVER_CLEAR_KEY 0x02 /* Clear key token */
26 #define TOKVER_CCA_AES 0x04 /* CCA AES key token */
27 #define TOKVER_CCA_VLSC 0x05 /* var length sym cipher key token */
29 /* Max size of a cca variable length cipher key token */
32 /* header part of a CCA key token */
36 u16 len; /* vlsc token: total length in bytes */
41 /* inside view of a CCA secure key token (only type 0x01 version 0x04) */
43 u8 type; /* 0x01 for internal key token */
54 u8 tvv[4]; /* token validation value */
57 /* inside view of a variable length symmetric cipher AES key token */
59 u8 type; /* 0x01 for internal key token */
61 u16 len; /* total key token length in bytes */
99 u8 type; /* 0x1f for internal asym key token */
101 u16 len; /* total key token length in bytes */
133 * Simple check if the token is a valid CCA secure AES data key
134 * token. If keybitsize is given, the bitsize of the key is
138 const u8 *token, int keybitsize);
141 * Simple check if the token is a valid CCA secure AES cipher key
142 * token. If keybitsize is given, the bitsize of the key is
148 const u8 *token, int keybitsize,
152 * Simple check if the token is a valid CCA secure ECC private
153 * key token. Returns 0 on success or errno value on failure.
156 const u8 *token, size_t keysize,