-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Conversation
* info: “SKVerifier” (encoded as ASCII string) | ||
* L: 32 octets | ||
* IKM: Zab // discuss | ||
* salt: SHA-256(???) // discuss |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* salt: SHA-256(???) // discuss | |
* salt: SHA-256(XOR(nonce, PubKey)) |
nonce is combination of pieces from both parties.
There was a problem hiding this comment.
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 :)
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* IKM: Zab // discuss | |
* IKM: Zab |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 .
No description provided.