Skip to content

Conversation

@daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Apr 11, 2025

Main motivation was that decaf448 (RustCrypto/elliptic-curves#1121) requires ExpandMsgXof instead of ExpandMsgXmd.

I was briefly tempted to add a type Hash to the ExpandMsg trait to be able to write type ExpandMsg: ExpandMsg<Hash = Self::Hash>. Otherwise it is possible to add a different hash in the ExpandMsg type:

impl VoprfParamters for Fun128 {
    type Hash = Sha512;
    type ExpandMsg = ExpandMsgXmd<Sha256>;
    ...
}

But I thought its a bit much. Let me know if you want me to add that.

@tarcieri tarcieri merged commit 2dcad35 into RustCrypto:master May 19, 2025
12 checks passed
tarcieri pushed a commit to RustCrypto/elliptic-curves that referenced this pull request May 21, 2025
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