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

RFC 5054 paddings #9

Open
amitkriit opened this issue Feb 10, 2018 · 1 comment
Open

RFC 5054 paddings #9

amitkriit opened this issue Feb 10, 2018 · 1 comment

Comments

@amitkriit
Copy link

RFC 5054 specifies left padding during calculation of k and u as expressed below:
k = H(N, PAD(g))
u = H(PAD(A), PAD(B))

PAD(X) inserts left padding (zeros) into the binary big-endian representation of X to match it's number of bytes with the number of bytes in N.

Current code doesn't compute the paddings.

@cocagne
Copy link
Owner

cocagne commented Feb 10, 2018 via email

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

No branches or pull requests

2 participants