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
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3
3 changed files with 10 additions and 10 deletions

@ -1 +1 @@
Subproject commit 2471b3308b56a059ac8252f771fa27b6d6e6c640
Subproject commit 3b268a33eb22309c51cc621dd751ef8909114672

View file

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

View file

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