Skip to content

Fido: some fixes for the PRF extension - #3929

Open
p1gp1g wants to merge 4 commits into
microg:masterfrom
p1gp1g:fido/fix_prf_wip
Open

p1gp1g wants to merge 4 commits into
microg:masterfrom
p1gp1g:fido/fix_prf_wip

Conversation

@p1gp1g

@p1gp1g p1gp1g commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

This line val prfFirst = rawId?.let { java.security.MessageDigest.getInstance("SHA-256").digest(it) }?.copyOf(32) could have been a security issue, because it's supposed to be a secret.

But the output of the PRF extension is not valid for the moment: it returns {"enabled":true, "first":"value"} instead of {"enabled":true, "results": {"first":"value"}} - so it was impossible to use it.

This PR removes the PRF output until it is correctly supported, but fixes the output of the extension and the parsing of the input

@p1gp1g p1gp1g changed the title Fido/fix prf wip Fido: some fixes for the PRF extension Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants