mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2024-09-20 03:10:10 +00:00
Upgrade to version 5.6
This commit is contained in:
commit
2e5b8f4c71
@ -111,6 +111,10 @@ void cbor_thread() {
|
|||||||
if (apdu.sw == 0) {
|
if (apdu.sw == 0) {
|
||||||
DEBUG_DATA(res_APDU + 1, res_APDU_size);
|
DEBUG_DATA(res_APDU + 1, res_APDU_size);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
res_APDU[0] = apdu.sw;
|
||||||
|
apdu.sw = 0;
|
||||||
|
}
|
||||||
|
|
||||||
finished_data_size = res_APDU_size + 1;
|
finished_data_size = res_APDU_size + 1;
|
||||||
|
|
||||||
|
@ -222,6 +222,9 @@ int cbor_make_credential(const uint8_t *data, size_t len) {
|
|||||||
curve = FIDO2_CURVE_P256K1;
|
curve = FIDO2_CURVE_P256K1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (pubKeyCredParams[i].alg <= FIDO2_ALG_RS256 && pubKeyCredParams[i].alg >= FIDO2_ALG_RS512) {
|
||||||
|
// pass
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
CBOR_ERROR(CTAP2_ERR_CBOR_UNEXPECTED_TYPE);
|
CBOR_ERROR(CTAP2_ERR_CBOR_UNEXPECTED_TYPE);
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,7 @@ extern const bool _btrue, _bfalse;
|
|||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
error = e; \
|
error = e; \
|
||||||
printf("Cbor ERROR [%s:%d]: %d\n", __FILE__, __LINE__, e); \
|
printf("Cbor ERROR [%s:%d]: %x\n", __FILE__, __LINE__, e); \
|
||||||
goto err; \
|
goto err; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
@ -66,6 +66,9 @@ extern int ecdh(uint8_t protocol, const mbedtls_ecp_point *Q, uint8_t *sharedSec
|
|||||||
#define FIDO2_ALG_ES512 -36 //ECDSA-SHA512 P521
|
#define FIDO2_ALG_ES512 -36 //ECDSA-SHA512 P521
|
||||||
#define FIDO2_ALG_ECDH_ES_HKDF_256 -25 //ECDH-ES + HKDF-256
|
#define FIDO2_ALG_ECDH_ES_HKDF_256 -25 //ECDH-ES + HKDF-256
|
||||||
#define FIDO2_ALG_ES256K -47
|
#define FIDO2_ALG_ES256K -47
|
||||||
|
#define FIDO2_ALG_RS256 -257
|
||||||
|
#define FIDO2_ALG_RS384 -258
|
||||||
|
#define FIDO2_ALG_RS512 -259
|
||||||
|
|
||||||
#define FIDO2_CURVE_P256 1
|
#define FIDO2_CURVE_P256 1
|
||||||
#define FIDO2_CURVE_P384 2
|
#define FIDO2_CURVE_P384 2
|
||||||
|
Loading…
Reference in New Issue
Block a user