Fix spelling error in comments

This commit is contained in:
Ludovic Rousseau 2020-08-29 23:22:34 +02:00
parent e1353c0488
commit 3168f48503
2 changed files with 2 additions and 2 deletions

View File

@ -2250,7 +2250,7 @@ pgp_update_new_algo_attr(sc_card_t *card, sc_cardctl_openpgp_keygen_info_t *key_
data[0] = key_info->algorithm;
ushort2bebytes(data+1, key_info->u.rsa.modulus_len);
/* OpenPGP Card only accepts 32bit as exponent lenght field,
/* OpenPGP Card only accepts 32bit as exponent length field,
* although you can import keys with smaller exponent;
* thus we don't change rsa.exponent_len, but ignore it here */
ushort2bebytes(data+3, SC_OPENPGP_MAX_EXP_BITS);

View File

@ -168,7 +168,7 @@ soc_info(sc_context_t *ctx, sc_card_t *card)
}
putchar('\t');
util_hex_dump(stdout, p, length, "");
/* align with the maximum lenght of an AID */
/* align with the maximum length of an AID */
for (i = length; i < 0x10 + 1; i++)
printf(" ");