Update code style.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2023-03-04 14:05:51 +01:00
parent 35aec06391
commit fa60ed5049
3 changed files with 10 additions and 10 deletions

View File

@@ -390,14 +390,14 @@ int cmd_cipher_sym() {
} }
r = mbedtls_pkcs5_pbkdf2_hmac_ext(md_type, r = mbedtls_pkcs5_pbkdf2_hmac_ext(md_type,
kdata, kdata,
key_size, key_size,
salt.p, salt.p,
salt.len, salt.len,
iterations, iterations,
keylen ? keylen : (apdu.ne > 0 && keylen ? keylen : (apdu.ne > 0 &&
apdu.ne < 65536 ? apdu.ne : 32), apdu.ne < 65536 ? apdu.ne : 32),
res_APDU); res_APDU);
mbedtls_platform_zeroize(kdata, sizeof(kdata)); mbedtls_platform_zeroize(kdata, sizeof(kdata));
if (r != 0) { if (r != 0) {
return SW_EXEC_ERROR(); return SW_EXEC_ERROR();

View File

@@ -278,7 +278,7 @@ bool wait_button_pressed() {
} }
int parse_token_info(const file_t *f, int mode) { int parse_token_info(const file_t *f, int mode) {
char *label = "SmartCard-HSM"; char *label = "Pico-HSM";
char *manu = "Pol Henarejos"; char *manu = "Pol Henarejos";
if (mode == 1) { if (mode == 1) {
uint8_t *p = res_APDU; uint8_t *p = res_APDU;