Hi guys
I am experiencing a recurring error related to message integrity verification using the libsignal library. During decryption—specifically in the verifyMAC function in crypto.js and the methods doDecryptWhisperMessage and decryptWithSessions in session_cipher.js—the system repeatedly throws a “Bad MAC” error. This suggests that the Message Authentication Code (MAC) is not being validated correctly, leading to decryption failures.
Additionally, the logs indicate that the system is removing old closed sessions and closing open sessions in favor of an incoming prekey bundle, but the error persists.
I need assistance understanding what might be causing this MAC verification failure and how to resolve the issue.
Somebody can help me?
0|wbot | Closing open session in favor of incoming prekey bundle
0|wbot | Closing session: SessionEntry {
0|wbot | _chains: {
0|wbot | 'BfrhxThhFa+IzadRY9v67h2k8IgW2PfK6isdEw9YdO5h': { chainKey: [Object], chainType: 1, messageKeys: {} }
0|wbot | },
0|wbot | registrationId: 29175088,
0|wbot | currentRatchet: {
0|wbot | ephemeralKeyPair: {
0|wbot | pubKey: <Buffer 05 fa e1 c5 38 61 15 af 88 cd a7 51 63 db fa ee 1d a4 f0 88 16 d8 f7 ca ea 2b 1d 13 0f 58 74 ee 61>,
0|wbot | privKey: <Buffer 60 c3 18 10 64 aa 92 0a 0d b7 29 c5 1a 69 e4 c3 0a 24 bf 02 08 15 9c 84 da 20 91 84 39 94 de 45>
0|wbot | },
0|wbot | lastRemoteEphemeralKey: <Buffer 05 55 03 2b a6 6d ac c3 2f 0d cf 13 96 a0 d8 00 c0 31 13 69 09 7d d0 c4 20 03 39 7e 8f ed dd f1 0d>,
0|wbot | previousCounter: 0,
0|wbot | rootKey: <Buffer 57 99 f4 b6 3a d3 3f cc f4 03 53 4a e5 e5 bd c8 db e6 b8 90 2c 9c 32 d9 1a 85 1e 99 4e ed c2 43>
0|wbot | },
Hi guys
I am experiencing a recurring error related to message integrity verification using the libsignal library. During decryption—specifically in the verifyMAC function in crypto.js and the methods doDecryptWhisperMessage and decryptWithSessions in session_cipher.js—the system repeatedly throws a “Bad MAC” error. This suggests that the Message Authentication Code (MAC) is not being validated correctly, leading to decryption failures.
Additionally, the logs indicate that the system is removing old closed sessions and closing open sessions in favor of an incoming prekey bundle, but the error persists.
I need assistance understanding what might be causing this MAC verification failure and how to resolve the issue.
Somebody can help me?
0|wbot | Closing open session in favor of incoming prekey bundle
0|wbot | Closing session: SessionEntry {
0|wbot | _chains: {
0|wbot | 'BfrhxThhFa+IzadRY9v67h2k8IgW2PfK6isdEw9YdO5h': { chainKey: [Object], chainType: 1, messageKeys: {} }
0|wbot | },
0|wbot | registrationId: 29175088,
0|wbot | currentRatchet: {
0|wbot | ephemeralKeyPair: {
0|wbot | pubKey: <Buffer 05 fa e1 c5 38 61 15 af 88 cd a7 51 63 db fa ee 1d a4 f0 88 16 d8 f7 ca ea 2b 1d 13 0f 58 74 ee 61>,
0|wbot | privKey: <Buffer 60 c3 18 10 64 aa 92 0a 0d b7 29 c5 1a 69 e4 c3 0a 24 bf 02 08 15 9c 84 da 20 91 84 39 94 de 45>
0|wbot | },
0|wbot | lastRemoteEphemeralKey: <Buffer 05 55 03 2b a6 6d ac c3 2f 0d cf 13 96 a0 d8 00 c0 31 13 69 09 7d d0 c4 20 03 39 7e 8f ed dd f1 0d>,
0|wbot | previousCounter: 0,
0|wbot | rootKey: <Buffer 57 99 f4 b6 3a d3 3f cc f4 03 53 4a e5 e5 bd c8 db e6 b8 90 2c 9c 32 d9 1a 85 1e 99 4e ed c2 43>
0|wbot | },