Credentials CANNOT be regenerated, as they depend on random IV.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-21 19:53:36 +02:00
parent a44227db52
commit cf206bf158
3 changed files with 9 additions and 13 deletions

View File

@@ -44,6 +44,7 @@ typedef struct Credential
const bool *use_sign_count;
int64_t alg;
int64_t curve;
CborByteString id;
bool present;
} Credential;
@@ -56,7 +57,6 @@ extern int credential_create(CborCharString *rpId, CborByteString *userId, CborC
extern void credential_free(Credential *cred);
extern int credential_store(const uint8_t *cred_id, size_t cred_id_len, const uint8_t *rp_id_hash);
extern int credential_load(const uint8_t *cred_id, size_t cred_id_len, const uint8_t *rp_id_hash, Credential *cred);
extern int credential_create_cred(Credential *cred, uint8_t *cred_id, size_t *cred_id_len);
extern int credential_derive_hmac_key(const uint8_t *cred_id, size_t cred_id_len, uint8_t *outk);
#endif // _CREDENTIAL_H_