Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Update to accommodate DST longer than 255 #15

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Update to accommodate DST longer than 255 #15

wants to merge 4 commits into from

Conversation

mikelodder7
Copy link

Signed-off-by: Michael Lodder redmike7@gmail.com

Signed-off-by: Michael Lodder <redmike7@gmail.com>
Signed-off-by: Michael Lodder <redmike7@gmail.com>
Signed-off-by: Michael Lodder <redmike7@gmail.com>
Copy link

@AnomalRoil AnomalRoil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks like a fine API to me, but the tests don't seem to test this new code path, which is suboptimal.

@@ -1,5 +1,5 @@
module github.com/kilic/bls12-381
module github.cbhq.net/security/bls12-381

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like it was committed by mistake.

if err != nil {
t.Fatal("encode to point fails", i, err)
}
if !bytes.Equal(g.ToBytes(p0), v.expected) {
t.Fatal("encode to point fails x", i)
}
}
domain = []byte("QUUX-V01-CS02-with-expander")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a 27 bytes = 216 bit DST, so this does not test the code path about the DST being longer than 255, does it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants