Compare commits
1 Commits
max_enumer
...
hmac-secre
Author | SHA1 | Date | |
---|---|---|---|
6ed2eb34f4 |
@ -1587,15 +1587,18 @@ static int scan_for_next_rk(int index, uint8_t * initialRpIdHash){
|
||||
|
||||
if (initialRpIdHash != NULL) {
|
||||
memmove(lastRpIdHash, initialRpIdHash, 32);
|
||||
index = -1;
|
||||
index = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
ctap_load_rk(index, &rk);
|
||||
memmove(lastRpIdHash, rk.id.rpIdHash, 32);
|
||||
index++;
|
||||
}
|
||||
|
||||
do
|
||||
ctap_load_rk(index, &rk);
|
||||
|
||||
while ( memcmp( rk.id.rpIdHash, lastRpIdHash, 32 ) != 0 )
|
||||
{
|
||||
index++;
|
||||
if ((unsigned int)index >= ctap_rk_size())
|
||||
@ -1604,7 +1607,6 @@ static int scan_for_next_rk(int index, uint8_t * initialRpIdHash){
|
||||
}
|
||||
ctap_load_rk(index, &rk);
|
||||
}
|
||||
while ( memcmp( rk.id.rpIdHash, lastRpIdHash, 32 ) != 0 );
|
||||
|
||||
return index;
|
||||
}
|
||||
|
Reference in New Issue
Block a user