Skip to content

Conversation

@Sakurann
Copy link
Collaborator

@Sakurann Sakurann commented Oct 5, 2022

No description provided.

@Sakurann Sakurann requested a review from gsasikumar October 5, 2022 01:26
* 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


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.

3 participants