diff --git a/src/fido/fido.c b/src/fido/fido.c index fab4a5e..dfedaee 100644 --- a/src/fido/fido.c +++ b/src/fido/fido.c @@ -229,7 +229,7 @@ int derive_key(const uint8_t *app_id, uint8_t *key_handle, int curve, mbedtls_ecp_keypair *key) { - uint8_t outk[64] = { 0 }; + uint8_t outk[67] = { 0 }; //SECP521R1 key is 66 bytes length int r = 0; memset(outk, 0, sizeof(outk)); if ((r = load_keydev(outk)) != CCID_OK) {