Skip to content
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

Pkcs1v1.5 for signatures #3

Open
LWEdslev opened this issue May 27, 2024 · 0 comments
Open

Pkcs1v1.5 for signatures #3

LWEdslev opened this issue May 27, 2024 · 0 comments
Labels

Comments

@LWEdslev
Copy link
Owner

LWEdslev commented May 27, 2024

PKCS1 1.5 is vulnerable for encryption/decryption but there seems to be disagreement whether it is safe for signatures. It could be replaced by RSA PSS but the lottery mechanism will need to be rewritten, since we know use the deterministic property of PKCS1 v1.5, will need to be rewritten.
Instead of
$$Difficulty \leq Tickets\cdot H(Sig_{sk}(Lottery||seed))$$
perhaps $$Difficulty \leq Tickets\cdot H(Lottery||seed||pk)$$ and along with that a signed
$Sig_{sk}(H(Lottery||seed||pk))$ to verify that it is not an adversary who posted the block for another peer.
Or maybe even use ECDSA instead.

On safety of PKCS1-SSA v1.5:
[1] https://datatracker.ietf.org/doc/html/rfc8017
[2] https://eprint.iacr.org/2018/855.pdf

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

No branches or pull requests

1 participant