Skip to content

Commit

Permalink
Fixed RP attachment to token.
Browse files Browse the repository at this point in the history
Signed-off-by: Pol Henarejos <[email protected]>
  • Loading branch information
polhenarejos committed Nov 28, 2022
1 parent 052ff2d commit 71c0e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fido/cbor_client_pin.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ int cbor_client_pin(const uint8_t *data, size_t len) {
permissions = CTAP_PERMISSION_MC | CTAP_PERMISSION_GA;
paut.permissions = permissions;
if (rpId.present == true) {
memcpy(paut.rp_id_hash, rpId.data, 32);
mbedtls_sha256((uint8_t *)rpId.data, rpId.len, paut.rp_id_hash, 0);
paut.has_rp_id = true;
}
uint8_t pinUvAuthToken_enc[32+IV_SIZE];
Expand Down

0 comments on commit 71c0e86

Please sign in to comment.