Defining max length for credBlobs
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -117,7 +117,7 @@ int cbor_get_info() {
|
|||||||
CBOR_CHECK(cbor_encode_uint(&mapEncoder, PICO_FIDO_VERSION)); // firmwareVersion
|
CBOR_CHECK(cbor_encode_uint(&mapEncoder, PICO_FIDO_VERSION)); // firmwareVersion
|
||||||
|
|
||||||
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 0x0F));
|
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 0x0F));
|
||||||
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 1024)); // maxCredBlobLength
|
CBOR_CHECK(cbor_encode_uint(&mapEncoder, MAX_CREDBLOB_LENGTH)); // maxCredBlobLength
|
||||||
|
|
||||||
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 0x15));
|
CBOR_CHECK(cbor_encode_uint(&mapEncoder, 0x15));
|
||||||
CBOR_CHECK(cbor_encoder_create_array(&mapEncoder, &arrayEncoder, 2));
|
CBOR_CHECK(cbor_encoder_create_array(&mapEncoder, &arrayEncoder, 2));
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ extern void set_opts(uint8_t);
|
|||||||
#define MAX_CREDENTIAL_COUNT_IN_LIST 16
|
#define MAX_CREDENTIAL_COUNT_IN_LIST 16
|
||||||
#define MAX_CRED_ID_LENGTH 1024
|
#define MAX_CRED_ID_LENGTH 1024
|
||||||
#define MAX_RESIDENT_CREDENTIALS 256
|
#define MAX_RESIDENT_CREDENTIALS 256
|
||||||
|
#define MAX_CREDBLOB_LENGTH 128
|
||||||
|
|
||||||
typedef struct known_app {
|
typedef struct known_app {
|
||||||
const uint8_t *rp_id_hash;
|
const uint8_t *rp_id_hash;
|
||||||
|
|||||||
Reference in New Issue
Block a user