mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 17:28:06 +00:00
Update code style.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
35aec06391
commit
fa60ed5049
3 changed files with 10 additions and 10 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 2471b3308b56a059ac8252f771fa27b6d6e6c640
|
||||
Subproject commit 3b268a33eb22309c51cc621dd751ef8909114672
|
||||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue