mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-04-30 11:56:22 +00:00
Fix general authentication with AES.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
3835507e00
commit
b2ac893efc
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ int cmd_general_authenticate() {
|
|||
sm_derive_all_keys(derived, olen);
|
||||
|
||||
uint8_t *t = (uint8_t *)calloc(1, pubkey_len+16);
|
||||
memcpy(t, "\x7F\x49\x3F\x06\x0A", 5);
|
||||
memcpy(t, "\x7F\x49\x4F\x06\x0A", 5);
|
||||
if (sm_get_protocol() == MSE_AES)
|
||||
memcpy(t+5, OID_ID_CA_ECDH_AES_CBC_CMAC_128, 10);
|
||||
t[15] = 0x86;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue