-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MACed ID_CRED_x is always {4: "k"} #272
Comments
I propose we differentiate CredentialRpk into two types (this is clearly an API change):
By being different types, the using application is forced to do a conversion. Currently we do that conversion implicitly by one of two ways:
I don't like that we do 2 anyway (it is asking the application to set up something that it expects way earlier than it has the information), but if we want to stick with 2, we can still allow it in the API by having a combined parse-or-recognize method; I'd personally rather get rid of it and just have a fallible parse method (that recognizes an IdCred to be by value and then turns it into a Cred) and a match or lookup method, and run those independently of the context. |
Currently, MAC calculations always generates a {4: "k"} where k is the 1-long string encoded in the numeric kid:
However, as I understand the RFC, the value should be
This is only becoming apparent through the latest PRs #267, #270 and #271 -- without those, pass-by-kid was the only option anyway.
I think we'll have to overhaul a bit how we transport ID_CRED_x, CRED_x and how we link them to each other.
I anticipate that any plug test we do with a different implementation will fail as soon as we try anything but ID_CRED_x-is-KID with another implementation.
The text was updated successfully, but these errors were encountered: