Skip to content
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

defining Session Key Computation parameters #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Sakurann
Copy link
Collaborator

@Sakurann Sakurann commented Oct 5, 2022

No description provided.

* info: “SKVerifier” (encoded as ASCII string)
* L: 32 octets
* IKM: Zab // discuss
* salt: SHA-256(???) // discuss
Copy link
Collaborator Author

@Sakurann Sakurann Oct 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* salt: SHA-256(???) // discuss
* salt: SHA-256(XOR(nonce, PubKey))

nonce is combination of pieces from both parties.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plan to derive 16 bytes :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard to XOR?

* salt: SHA-256
* info: “SKVerifier” (encoded as ASCII string)
* L: 32 octets
* IKM: Zab // discuss
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* IKM: Zab // discuss
* IKM: Zab

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two pubkeys -> secret key -> input for IKM

* salt: SHA-256
* info: “SKWallet” (encoded as ASCII string)
* L: 32 octets
* IKM: Zab // discuss
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IKM: Shared secret key created using RFC7748 for X25519.

* info: “SKWallet” (encoded as ASCII string)
* L: 32 octets
* IKM: Zab // discuss
* salt: SHA-256(???) // discuss
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

salt: concatenate 8byte of nonce from the wallet and 8 bytes of nonce from relying party. So total of 16 bytes

* IKM: Zab // discuss
* salt: SHA-256(???) // discuss
* info: “OpenID4VPVerifier” (encoded as ASCII string)
* L: 32 octets // discuss

The Wallet MUST derive session key using HKDF as defined in [RFC5869] with the following parameters:

* Hash: SHA-256
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we choose SHA-256? Blake2b is a far better hashing algorithm and is performance friendly RFC 7693
. Note: Argon uses Blake2b .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants