Update code style.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Submodule pico-hsm-sdk updated: 2471b3308b...3b268a33eb
@@ -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();
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user