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

ike=3des-sha2_512;modp1024 dosen't work #436

Open
jammy2020 opened this issue Jun 2, 2020 · 1 comment
Open

ike=3des-sha2_512;modp1024 dosen't work #436

jammy2020 opened this issue Jun 2, 2020 · 1 comment

Comments

@jammy2020
Copy link

jammy2020 commented Jun 2, 2020

Hi!
If I have ike=3des-sha2_512;modp1024 in conn (peer is cisco) I have got:
"IPSec_TUN_5" #1: received Hash Payload does not match computed value

But, with ike=3des-sha2_256;modp1024 everything is ok!

I track the code, and find this in hmac_final() of hmac.c :
h->hash_update(&ctx->hash_ctx, ctx->buf2, HMAC_BUFSIZE);

HMAC_BUFSIZE is defined as a static value 64(bytes), which is the length of chunk in sha256. However, in my understanding, sha512 takes 128 bytes as a chunk.

What do you think? Or, how do you define the HMAC_BUFSIZE?

@letoams
Copy link
Contributor

letoams commented Jun 2, 2020 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