IsoApplet: Align comments with spaces instead of tabs

Better view with tabstop=8.
This commit is contained in:
Philip Wendland 2014-11-28 19:06:21 +01:00
parent 43fa99c0f2
commit 5628a06353
No known key found for this signature in database
GPG Key ID: 4424DC9CFB68DAAF
2 changed files with 85 additions and 84 deletions

View File

@ -287,31 +287,31 @@ isoApplet_create_file(sc_card_t *card, sc_file_t *file)
const int df_idx[8] = /* These are the SC operations. */ const int df_idx[8] = /* These are the SC operations. */
{ {
0, /* Reserved. */ 0, /* Reserved. */
SC_AC_OP_DELETE_SELF, //b6 SC_AC_OP_DELETE_SELF, /* b6 */
SC_AC_OP_LOCK, //b5 SC_AC_OP_LOCK, /* b5 */
SC_AC_OP_ACTIVATE, //b4 SC_AC_OP_ACTIVATE, /* b4 */
SC_AC_OP_DEACTIVATE, //b3 SC_AC_OP_DEACTIVATE, /* b3 */
SC_AC_OP_CREATE_DF, //b2 SC_AC_OP_CREATE_DF, /* b2 */
SC_AC_OP_CREATE_EF, //b1 SC_AC_OP_CREATE_EF, /* b1 */
SC_AC_OP_DELETE //b0 SC_AC_OP_DELETE /* b0 */
}; };
for(i=0; i<8; i++) for(i=0; i<8; i++)
{ {
idx[i] = df_idx[i]; idx[i] = df_idx[i];
} }
} }
else //EF else /* EF */
{ {
const int ef_idx[8] = const int ef_idx[8] =
{ {
0, /* Reserved. */ 0, /* Reserved. */
SC_AC_OP_DELETE_SELF, //b6 SC_AC_OP_DELETE_SELF, /* b6 */
SC_AC_OP_LOCK, //b5 SC_AC_OP_LOCK, /* b5 */
SC_AC_OP_ACTIVATE, //b4 SC_AC_OP_ACTIVATE, /* b4 */
SC_AC_OP_DEACTIVATE, //b3 SC_AC_OP_DEACTIVATE, /* b3 */
SC_AC_OP_WRITE, //b2 SC_AC_OP_WRITE, /* b2 */
SC_AC_OP_UPDATE, //b1 SC_AC_OP_UPDATE, /* b1 */
SC_AC_OP_READ //b0 SC_AC_OP_READ /* b0 */
}; };
for(i=0; i<8; i++) for(i=0; i<8; i++)
{ {

View File

@ -333,7 +333,8 @@ isoApplet_generate_key_rsa(sc_pkcs15_prkey_info_t *key_info, sc_card_t *card,
} }
/* Generate the key. /* Generate the key.
* Note: key size is not explicitly passed to the card. It assumes 2048 along with the algorithm reference. */ * Note: key size is not explicitly passed to the card.
* It assumes 2048 along with the algorithm reference. */
memset(&args, 0, sizeof(args)); memset(&args, 0, sizeof(args));
args.algorithm_ref = SC_ISOAPPLET_ALG_REF_RSA_GEN_2048; args.algorithm_ref = SC_ISOAPPLET_ALG_REF_RSA_GEN_2048;
args.priv_key_ref = key_info->key_reference; args.priv_key_ref = key_info->key_reference;