Apply KEM from RFC 9180; TODO authenticated KEM #29
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have not fully checked the details yet, but suspect that the ARKG spec can be simplified by referring to the KEM from RFC 9180.
It removes the ability to provide a context string, but I don’t think that is a problem, since the output from KEM-Encap is ephemeral and therefore bound to the application context anyway.
Referring to DHKEM specifically does add
"HPKE-v1"to the HKDF input keying material, which is awkward. But there seem to be already precedents of Internet-Drafts and RFCs reusing the DHKEM outside of the context of HPKE.Probably the section “Using ECDH as the KEM” can be removed as well, if we find a predefined KEM for
secp256k1.