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

AEAD cyphers ERROR - Remote: Integrity failure: GCM tag check failed #177

Open
sgww2 opened this issue Mar 25, 2018 · 3 comments
Open

AEAD cyphers ERROR - Remote: Integrity failure: GCM tag check failed #177

sgww2 opened this issue Mar 25, 2018 · 3 comments

Comments

@sgww2
Copy link

sgww2 commented Mar 25, 2018

Hello

I use shadowsocks-libqss 2.0.2 on Windows 10 as a client and shadowsocks-libqss 2.0.2 on ubuntu 18.04 LTS as a server.
Everything goes well if I use CFB cyphers, but with AEAD cyphers I get the following error

2018-03-26 0:14:20.627 ERROR: Remote: Integrity failure: GCM tag check failed

I also tried shadowsocks-libev as a server but with the same result. What is the reason for the error and how to fix it?

More detailed log:

2018-03-26 0:13:02.208 INFO: Initialising cipher: aes-128-gcm
2018-03-26 0:13:02.224 INFO: Running in local mode.
2018-03-26 0:13:02.224 DEBUG: Listen UDP socket state changed to QAbstractSocket::BoundState
2018-03-26 0:13:02.239 INFO: TCP server listening at 127.0.0.1:10800
2018-03-26 0:13:02.333 INFO: The shadowsocks connection is okay.
2018-03-26 0:13:05.943 INFO: Connecting some server here:443 from 127.0.0.1:62105
2018-03-26 0:13:41.998 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:13:41.998 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:13:41.998 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:13:42.186 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:13:42.201 DEBUG: AEAD data chunk is incomplete (too small for length)
2018-03-26 0:13:42.201 ERROR: Remote: Integrity failure: GCM tag check failed
2018-03-26 0:13:47.249 INFO: Connecting some server:443 from 127.0.0.1:62160
2018-03-26 0:13:47.546 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:13:56.547 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:14:20.612 DEBUG: AEAD data chunk is incomplete (too small for payload)
2018-03-26 0:14:20.627 DEBUG: AEAD data chunk is incomplete (too small for length)
2018-03-26 0:14:20.627 ERROR: Remote: Integrity failure: GCM tag check failed
2018-03-26 0:14:25.665 INFO: Connecting some server:443 from 127.0.0.1:62191
2018-03-26 0:14:40.970 DEBUG: AEAD data chunk is incomplete (too small for payload)

Thanks

@librehat
Copy link
Contributor

librehat commented Apr 8, 2018

I do see this error sometimes but I'm not sure why this would happen

@testcaoy7
Copy link

Same issue. Maybe Botan's crypto is incompatible with libsodium?

@sgww2
Copy link
Author

sgww2 commented Apr 11, 2018

@librehat @testcaoy7

As I am not a developer I can not find what is wrong, however I tested shadowsocks-libev (AEAD ciphers) version both client and server and didn't get this issue. So this issue is only for the QT version.

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

No branches or pull requests

3 participants