-
Notifications
You must be signed in to change notification settings - Fork 3
defining Session Key Computation parameters #18
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -251,7 +251,7 @@ TODO: Can we plan to register our service with Bluetooth SIG? This will allow us | |||||
|
|
||||||
| ToDo: If 'Submit VC' latency is high due to the presence of a photograph we will fall back to the style that Kritina wrote with State. | ||||||
|
|
||||||
| ToDo: Check if there are conventions to the UUID. Original in ISO is `00000001-A123-48CE-896B-4C76973373E6`. | ||||||
| ToDo: Check if there are conventions to the UUID. Current UUID has been randomly generated. | ||||||
|
|
||||||
| ## Identity Request | ||||||
|
|
||||||
|
|
@@ -346,18 +346,18 @@ To calculate the session keys, the Wallet and the Verifier MUST perform ECKA-DH | |||||
| The Verifier MUST derive session key using HKDF as defined in [RFC5869] with the following parameters: | ||||||
|
|
||||||
| * Hash: SHA-256 | ||||||
| * IKM: Zab | ||||||
| * salt: SHA-256 | ||||||
| * info: “SKVerifier” (encoded as ASCII string) | ||||||
| * L: 32 octets | ||||||
| * IKM: Zab // discuss | ||||||
| * salt: SHA-256(???) // discuss | ||||||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
nonce is combination of pieces from both parties.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. plan to derive 16 bytes :)
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. standard to XOR? |
||||||
| * 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 | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||||||
| * IKM: Zab | ||||||
| * salt: SHA-256 | ||||||
| * info: “SKWallet” (encoded as ASCII string) | ||||||
| * L: 32 octets | ||||||
| * IKM: Zab // discuss | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IKM: Shared secret key created using RFC7748 for X25519. |
||||||
| * salt: SHA-256(???) // discuss | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||||||
| * info: “OpenID4VPWallet” (encoded as ASCII string) | ||||||
| * L: 32 octets // discuss | ||||||
|
|
||||||
| For encryption AES-256-GCM (192) (GCM: Galois Counter Mode) as defined in NIST SP 800-38D or ChaCha20 RFC 8439 MUST be used. | ||||||
|
|
||||||
|
|
||||||
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.
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